SA-MP Forums Archive
racecheckpoint help! - 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: racecheckpoint help! (/showthread.php?tid=191564)



racecheckpoint help! - FerrariII - 19.11.2010

public SetRaceCheckpoint(playerid,target,next)
{
if(next == -1 && Normal == 0)
SetPlayerRaceCheckpoint(playerid,1,1140.1378,1376. 2739,10.3990,1004.8897,1360.0975,10.3990,1.0);

return 1;
}

those are the first checkpoint and the second checkpoint how to make it after he go to the second one he go to third etc..
and i get error with this "Normal"
please respond and not like every time i ask for help i never asked for it and someone helped please respond
please!

Ferrari, Thxbb


Re: racecheckpoint help! - Vince - 19.11.2010

Make a per-player variable (checkpointid[MAX_PLAYERS], for example) in which you'll store the player's current checkpoint.
Whenever a player passes trough a checkpoint, increment the var with 1. You can then use it to set the next checkpoint accordingly.

pawn Код:
switch(checkpointid)
{
    // Add CP's
    case 1: SetPlayerCheckpoint(...);
    case 2: SetPlayerCheckpoint(...);
    case 3: SetPlayerCheckpoint(...);
}



Re: racecheckpoint help! - FerrariII - 19.11.2010

i still dnt get it sry