06.01.2014, 13:20
How to disable Driveby?? look at this picture

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver or passenger
{
return SetPlayerArmedWeapon(playerid, 0);
}
return true;
}
This, searching could help you, but sometimes people do not have common sense
pawn Код:
|