04.11.2014, 17:26
When another player is trying to wear the Night Vision Goggles or Thermal Goggles I can't see them doing any animation or the object on their head but they do see the object and anim on their screen.
I put this code under OnPlayerUpdate and it fixes the bug. Is there a way to apply an animation and attach an object when a player wears them but when he takes them off disable the object?
I put this code under OnPlayerUpdate and it fixes the bug. Is there a way to apply an animation and attach an object when a player wears them but when he takes them off disable the object?
pawn Код:
switch(GetPlayerWeapon(playerid))
{
case 44, 45:
{
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
{
return 0;
}
}
}