15.08.2013, 11:59
pawn Код:
new OnDuty[MAX_PLAYERS]=false;//global
OnDuty[playerid] =true; // under command for /onduty like..
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
{
if(OnDuty[playerid] == true || /*Vehicle id(s)*/)
{
// code
}
}
return 1;
}