Help With Checkpoints
#1

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
Reply
#2

case 1 is missing a SetPlayerCheckpoint.
Reply
#3

look closely case 1 has it...

SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2], ;

http://pastebin.com/3LRNyJgj
Reply
#4

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);
Reply
#5

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;
Reply
#6

Doesn't matter, as long as SetPlayerCheckpoint is after DisablePlayerCheckpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)