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

Use 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;
}
Also make sure you replaced any:
pawn Код:
simplejobrunning
With:
pawn Код:
simplejobrunning[playerid]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)