SA-MP Forums Archive
Parkour check points 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: Parkour check points help (/showthread.php?tid=174303)



Parkour check points help - fie - 05.09.2010

Hey, could you help me ?

I want to make a checkpoint on parkour so it is like a race and then on the last checkpoint it says such a person has
finished 1st second and 3rd

can you help?

and also on the third person finishing it says, time is up??

thanks


Re: Parkour check points help - PixeledNinja - 05.09.2010

I am also wondering how this is done...


Re: Parkour check points help - Nero_3D - 05.09.2010

thats not hard here would be an example

pawn Код:
//if(last checkpoint)
{
    static winner;
    new string[64];
    GetPlayerName(playerid, string, MAX_PLAYER_NAME);
    switch(++winner)
    {
        case 1: format(string, sizeof string, "~r~%s ~b~won the race!", string);
        case 2: format(string, sizeof string, "~r~%s ~b~is second!", string);
        case 3:
        {
            format(string, sizeof string, "~r~%s ~b~is third!~n~~y~Time is up!", string);
            winner = 0;
            EndRace(); //Pseudo function to reset the race and remove all racers
        }
    }
    return GameTextForAll(string, 5000, 4);
}