PHP код:
forward WinBikeRace(playerid);
public WinBikeRace(playerid)
{
for(new i;i<= MAX_PLAYERS;i++) {
if(InRace5[i] == 1) {
if(i!=playerid) {
PlayerLoseRace = i;
}}}
KillTimer(TimerMaslul2);
KillTimer(CheckRaceSecs);
Race5On = 0;
PlayersDrift = 0;
GetPlayerName(playerid, PlayerWinTheRace, sizeof(PlayerWinTheRace));
new PlayerLoseNameR[MAX_PLAYER_NAME];
GetPlayerName(PlayerLoseRace, PlayerLoseNameR, sizeof(PlayerLoseNameR));
format(knobRace, sizeof(knobRace), ".$%d ежлд бдътшбеъ тм слен %s рйцз бойшех дгшйфи аъ %s [%.3f щрйеъ]", ReRacewar5d,PlayerLoseNameR, PlayerWinTheRace,TimerTOFinishTheDrift[playerid]);
scmToAll(cblue, knobRace);
scmToAll(Gold, "[Drift_System] >> {FFFFFF}.отшлъ дгшйфийн фрейд лтъ {00BC00}•••");
GivePlayerMoneyEX(PlayerLoseRace, -ReRacewar5d);
GivePlayerMoneyEX(playerid, ReRacewar5d);
PlayerWinDrift = false;
Deleteneon(playerid);
SetTimerEx("DeystroyDrift",3*1000,0,"%d",playerid);
for(new i;i<= MAX_PLAYERS;i++) {
if(InRace5[i] == 1) {
Deleteneon(i);
InRace5[i] = 0; WSRace = 0; PPRace[i] = 0; DisablePlayerRaceCheckpoint(i);
new rand = random(sizeof(SpawnPlaces));
SetPlayerPos(i, SpawnPlaces[rand][0], SpawnPlaces[rand][1], SpawnPlaces[rand][2]);
SetPlayerVirtualWorld(i,0);
RacerMaslul1[i] = 0; RacerMaslul2[i] = 0; RacerMaslul3[i] = 0; RacerMaslul4[i] = 0; RacerMaslul5[i] = 0;
SetTimerEx("DeystroyDrift",3*1000,0,"%d",i);
} } return 1; }
and this part happen for sure [the checkpoint disable]! but the public not.
nothing not happend............. and finally there are no winner.