Quote:
Originally Posted by Marricio
This can be more efficient
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER) { if(simplejobrunning[playerid] == 1) // this will check the value to 'playerid' { simplejobrunning[playerid] = 0; // this will change the value to 'playerid' SendClientMessage(playerid, COLOR_RED, "You're job was canceled due to exiting the Vehicle"); DisablePlayerCheckpoint(playerid); // this will dissapear/disable the current player cp return 1; } } return 1; }
Compiled
|
I compiled it as well, but it doesn't work in-game.