How to make this script to requre to be on duty to enter in the taxi ?
#4

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;
}
this is what i got...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)