Parkour check points help
#1

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
Reply
#2

I am also wondering how this is done...
Reply
#3

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)