Checkpoint !help!
#3

hm, this solution would work but its not the best, because when you -lets say- have 50 checkpoints you need to write 49 "else if" checks.

i would do something like this:

Код:
new cpcounter[MAX_PLAYERS], string[50];
OnPlayerEnterCheckponint:

Код:
DisablePlayerCheckpoint(playerid);
cpcounter[playerid]++;
format(string, sizeof(string), "This is Checkpoint number %d", cpcounter[playerid]);
SendClientMessage(playerid, red, string);
SetPlayerCheckpoint(*your coords*);
so you can use as many chaeckpoints as you need without huge loads of code
Reply


Messages In This Thread
Checkpoint !help! - by Assyria - 15.04.2010, 17:11
Re: Checkpoint !help! - by McSquizzy - 15.04.2010, 17:20
Re: Checkpoint !help! - by Cank - 15.04.2010, 17:51
Re: Checkpoint !help! - by McSquizzy - 15.04.2010, 18:14
Re: Checkpoint !help! - by Assyria - 15.04.2010, 19:39
Re: Checkpoint !help! - by McSquizzy - 16.04.2010, 05:19

Forum Jump:


Users browsing this thread: 1 Guest(s)