[HELP PLEASE] Fix Jobs bug
#1

I want that a player can works once at the payday each jobs, how can I it?
I want this: When the player finishes 12 checkpoints will be the last that sends a message to player and respawn the vehicle that used from the player.
This is my code of the jobs
Код:
		if(idcar >=14 && idcar<=30)//pizzaah
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                PlayerInfo[playerid][pBank] = 25+PlayerInfo[playerid][pBank];
	            DisablePlayerCheckpoint(playerid);
	            new randomss;
                SetPlayerCheckpoint(playerid, gMissioneLavoriPunti[randomss][0], gMissioneLavoriPunti[randomss][1], gMissioneLavoriPunti[randomss][2], 5.0);
		   }
		}
Код:
new Float:gMissioneLavoriPunti[12][3] = {
{1402.3796,286.2180,19.5547}, // 1
{1321.8265,352.5653,19.5547}, // 2
{1323.9314,375.5667,19.5625}, // 3
{1288.8068,271.4812,19.5547}, // 4
{1262.3723,272.4508,19.5547}, // 5
{1234.1602,224.5029,19.5547}, // 6
{1294.3313,235.6630,19.5547}, // 7
{1360.5214,207.2972,19.5547}, // 8
{1412.5713,260.0995,19.5547}, // 9
{1400.0278,231.2276,19.5547}, // 10
{1345.3156,214.9580,19.5469}, // 11
{1274.8901,238.1734,19.5547} // 12
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)