SA-MP Forums Archive
Race - 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: Race (/showthread.php?tid=169400)



Race - Ernis456 - 19.08.2010

I created race with check points. How can I create statistic to write for players who finished first, second, race ?


Re: Race - ScottCFR - 19.08.2010

It's semi-complicated. When a player joins you need to create a variable the +1's and eventually stops letting people join. When they finish have another variable that +1's and look at the order in your script, like Winner[playeid] == 1 then it says playerid "Wins the race!" I have yet to do this in my script because of the dynamic thinking of a scripter like myself.