If you exit a vehicle, it cancels the job. (need help)
#2

pawn Код:
DisablePlayerCheckpoint(playerid);
Also when you created the "simplejobrunning" variable do this instead:

pawn Код:
simplejobrunning[MAX_PLAYERS];
Then change the code to this:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(simplejobrunning[playerid] == 1)
    {
        simplejobrunning[playerid] = 0;
        SendClientMessage(playerid, COLOR_RED, "You're job was canceled due to exiting the Vehicle");
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
The else is not needed.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)