Restrict drive-by?
#5

No need to reset... that is a alot of useless code....

All you need is this
pawn Код:
SetPlayerArmedWeapon(playerid,0);
Put it under the OnPlayerStateChange

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid,0);
return 1;
}
return 1;
}
This set the player holding fists when they enter a vehicle. I'm sure it works well
Reply


Messages In This Thread
Restrict drive-by? - by Arrows73 - 02.01.2012, 14:11
Re: Restrict drive-by? - by Basssiiie - 02.01.2012, 14:27
Re: Restrict drive-by? - by silvan - 02.01.2012, 14:51
Re: Restrict drive-by? - by Sinner - 02.01.2012, 14:52
Re: Restrict drive-by? - by silvan - 02.01.2012, 14:57
AW: Restrict drive-by? - by Arrows73 - 03.01.2012, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)