Help With Checkpoints - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With Checkpoints (
/showthread.php?tid=131735)
Help With Checkpoints -
Saurik - 04.03.2010
Hello guyz
Well i have mission on my server. each mission has 8 checkpoints, so i set the cords of all of them and their text "the text that pops out when you rech" .. Well when i press /startmission it shows me the first checkpoint so i got there. When i reach it. texts appears but >the second checkpoint doesnt appear, the cords are there!
Here an example of my script! help
http://pastebin.com/UDBdn79L
Re: Help With Checkpoints -
Eazy_Efolife - 04.03.2010
case 1 is missing a SetPlayerCheckpoint.
Re: Help With Checkpoints -
Saurik - 04.03.2010
look closely case 1 has it...
SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2],

;
http://pastebin.com/3LRNyJgj
Re: Help With Checkpoints -
Eazy_Efolife - 04.03.2010
Mis-read but anyway,
Код:
SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2], 8);
DisablePlayerCheckpoint(playerid);
Is the problem, you set a checkpoint and disabled it right away lol.
Remove
Код:
DisablePlayerCheckpoint(playerid);
Re: Help With Checkpoints -
Saurik - 04.03.2010
Remove it in all the cases? i have 8 lol ,
originally the code was like this
Код:
format(string, sizeof(string), "%s", PlayMission[kGText2]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText7]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText8]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText9]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP3][0], PlayMission[kCP3][1], PlayMission[kCP3][2], 8);
MissionCheckpoint[playerid] = 3;
Re: Help With Checkpoints -
Eazy_Efolife - 04.03.2010
Doesn't matter, as long as SetPlayerCheckpoint is after DisablePlayerCheckpoint