Race mode help!
#2

At the beginning of a race, set a variable to 0. Whenever someone finishes the race, increase the number by 1 and that number will be their finishing position.

To help you understand:
PHP код:
new racepos;
OnRaceStart{
    
racepos 0;
}
OnPlayerFinishRace(playerid){
    
racepos++;
    new 
str[128];
    
format(strsizeof(str), "You finished at position %i"racepos);
    
SendClientMessage(playerid, -1str);

Keep in mind, racepos has to be a global variable!
Reply


Messages In This Thread
Race mode help! - by SpikY_ - 26.09.2015, 09:32
Re: Race mode help! - by Sellize - 26.09.2015, 10:58
Re: Race mode help! - by SpikY_ - 26.09.2015, 13:26
Re: Race mode help! - by SpikY_ - 27.09.2015, 11:04
Re: Race mode help! - by jlalt - 27.09.2015, 11:31
Re: Race mode help! - by SpikY_ - 29.09.2015, 16:03
Re: Race mode help! - by jlalt - 29.09.2015, 16:19
Re: Race mode help! - by SpikY_ - 29.09.2015, 16:24
Re: Race mode help! - by jlalt - 29.09.2015, 16:25
Re: Race mode help! - by SpikY_ - 29.09.2015, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)