Jump to content

Fico preso quando pego skin


Recommended Posts

Olá, tenho um script de skin por pickup mas quando vou pegar a skins ela vem de boa mais eu fico preso(tento sair o personagem anda mas não sai do lugar como se estivesse em uma esteira)  por alguns segundos sem sair do lugar, só depois de uns 2 segundos consigo sair do pickup de skin. Ficarei grato se alguem puder me ajudar.

Segui o script abaixo, uso host com mysql.

skin = createPickup (1183.745, -1383.19, 13.601, 3, 1275, 0 )
function pickupskin ( thePlayer )
    
   if getElementData(thePlayer, "char.factionDuty") == 26 then 		 
    setPlayerSkin ( thePlayer, 276 )
   end
end
addEventHandler ( "onPickupUse", skin, pickupskin )

-- --------------------------------------------------------------------------------------------
skin2 = createPickup (1178.631, -1383.197, 13.637, 3, 1275, 0 )
function pickupskin2 ( thePlayer )
   
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     setPlayerSkin ( thePlayer, 231 )
   end
end
addEventHandler ( "onPickupUse", skin2, pickupskin2 )

-- --------------------------------------------------------------------------------------------
skin3 = createPickup (1146.488, -1382.93, 13.859, 3, 1275, 0 )
function pickupskin3 ( thePlayer )
    
    if getElementData(thePlayer, "char.factionDuty") == 26 then 
     setPlayerSkin ( thePlayer, 274 )
   end
end
addEventHandler ( "onPickupUse", skin3, pickupskin3 )

-- --------------------------------------------------------------------------------------------
skin4 = createPickup (1146.518, -1378.538, 13.858, 3, 1275, 0 )
function pickupskin4 ( thePlayer )
    
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     setPlayerSkin ( thePlayer, 253 )
   end
end
addEventHandler ( "onPickupUse", skin4, pickupskin4 )

-- --------------------------------------------------------------------------------------------
skin6 = createPickup (1173.732, -1383.5, 13.671, 3, 1275, 0 )
function pickupskin6 ( thePlayer )
    
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     setPlayerSkin ( thePlayer, 70 )
   end
end
addEventHandler ( "onPickupUse", skin6, pickupskin6 )

-- --------------------------------------------------------------------------------------------
skin7 = createPickup (1169.075, -1383.584, 13.703, 3, 1275, 0 )
function pickupskin7 ( thePlayer )
    
   if getElementData(thePlayer, "char.factionDuty") == 26 then     
    setPlayerSkin ( thePlayer, 278 )
   end
end
addEventHandler ( "onPickupUse", skin7, pickupskin7 )

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...