19.03.2011, 21:33
OMG
This will disarm only driver.
This will disarm driver and passenger.
You don't need so much functions in 0.3c. No need to freeze and use timers.
This will disarm only driver.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate==PLAYER_STATE_DRIVER || newstate==PLAYER_STATE_PASSENGER)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}