05.09.2010, 12:17
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);
}