31.07.2011, 10:20
You tried like this:
?
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 5 && !IsPlayerInAnyVehicle(playerid))
{
RemovePlayerAttachedObject(playerid,0);
SetPlayerAttachedObject(playerid,0,2045,6,0.039999,0.000000,0.250000,90.000000,0.000000,0.000000,3.800000,1.300000,3.800000);
}
else
{
RemovePlayerAttachedObject(playerid,0);
}
return true;
}