28.10.2010, 17:43
Hey me again
I'm on a basic race GM to script but I'm locked with the checkpoints I don't really understand the wiki and I just would some explanation and an example .
And I don't understand that :
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint
Ty
I'm on a basic race GM to script but I'm locked with the checkpoints I don't really understand the wiki and I just would some explanation and an example .
And I don't understand that :
Код:
//from Yagu's race filterscript, © by Yagu public SetRaceCheckpoint(playerid,target,next) { if(next == -1 && Airrace == 0) SetPlayerRaceCheckpoint(playerid,1,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2], 0.0,0.0,0.0,CPsize); else if(next == -1 && Airrace == 1) SetPlayerRaceCheckpoint(playerid,4,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2], 0.0,0.0,0.0,CPsize); else if(Airrace == 1) SetPlayerRaceCheckpoint(playerid,3,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2], RaceCheckpoints[next][0],RaceCheckpoints[next][1],RaceCheckpoints[next][2],CPsize); else SetPlayerRaceCheckpoint(playerid,0,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2], RaceCheckpoints[next][0],RaceCheckpoints[next][1],RaceCheckpoints[next][2],CPsize); }
Ty