02.01.2012, 14:57
No need to reset... that is a alot of useless code....
All you need is this
Put it under the OnPlayerStateChange
This set the player holding fists when they enter a vehicle. I'm sure it works well
All you need is this
pawn Код:
SetPlayerArmedWeapon(playerid,0);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid,0);
return 1;
}
return 1;
}