14.07.2018, 00:39
I have a problem.
My Flight Checkpoint is firstly at San Fierro Airport if you start the Job.
Then if you drive into it, it should wait 5 Seconds and then randomly choose Los Santos or Las Venturas as Next Checkpoint, but i only get Los Santos
My Flight Checkpoint is firstly at San Fierro Airport if you start the Job.
Then if you drive into it, it should wait 5 Seconds and then randomly choose Los Santos or Las Venturas as Next Checkpoint, but i only get Los Santos
Код:
forward Flug(playerid); public Flug(playerid) { fCP[playerid] = minrand(2,3); TogglePlayerControllable(playerid, true); if(fCP[playerid] == 2) { SendClientMessage(playerid, COLOR_WHITE, "Fliege nun nach Los Santos um die Ware abzuliefern."); return 1; } if(fCP[playerid] == 3) { SendClientMessage(playerid, COLOR_WHITE, "Fliege nun nach Las Venturas um die Ware abzuliefern."); return 1; } return 1; } public OnPlayerEnterCheckpoint(playerid) { if(GetPVarInt(playerid,"FlugJob") == 1) { if(fCP[playerid] == 1) { GameTextForPlayer(playerid, "~g~Ware wird aufgeladen...", 5000, 3); TogglePlayerControllable(playerid, false); SetTimerEx("Flug", 5000, false, "i", playerid); return 1; } return 1; }