31.07.2011, 10:11
hello !
I built a new weapon is my serve.
Built on a Baseball bat weapons.
But I have a small problem.
I tried to do that once a player replaces weapons, that he suppress the object ..
I like this timer is supposed to check if the player's weapon is not equal to 5:
But it takes the object only after a second or so since he replace the weapon.
Does anyone have an idea how to do it directly suppress the object?
Thanks in advance helpers
I built a new weapon is my serve.
Built on a Baseball bat weapons.
But I have a small problem.
I tried to do that once a player replaces weapons, that he suppress the object ..
I like this timer is supposed to check if the player's weapon is not equal to 5:
pawn Код:
public WeaponsTimer(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;
}
Does anyone have an idea how to do it directly suppress the object?
Thanks in advance helpers