20.10.2015, 13:47
case 30:
{
DisablePlayerRaceCheckpoint(playerid);
AccInfo[playerid][races] +=1;
GameTextForPlayer(playerid,"30/30~n~Checkpoints",2000,6);
PlayerPlaySound(playerid,1097,0.0,0.0,0.0);
new pname[MAX_PLAYER_NAME], string[256 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string),"[NGP]: {80FFFF}%s {FF0000}Has Won The Race,In totals They Won {80FFFF}%d {FF0000}Races",pname,AccInfo[playerid][races]);
SendClientMessageToAll(LIGHTBLUE,string);
SetPlayerVirtualWorld(playerid, 0);
SetTimer("racesound",4000,false);
Racer[playerid] = 0;
racestart = 1;
}
when i finish last checkpoint i win but 2nd player is in race why
{
DisablePlayerRaceCheckpoint(playerid);
AccInfo[playerid][races] +=1;
GameTextForPlayer(playerid,"30/30~n~Checkpoints",2000,6);
PlayerPlaySound(playerid,1097,0.0,0.0,0.0);
new pname[MAX_PLAYER_NAME], string[256 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string),"[NGP]: {80FFFF}%s {FF0000}Has Won The Race,In totals They Won {80FFFF}%d {FF0000}Races",pname,AccInfo[playerid][races]);
SendClientMessageToAll(LIGHTBLUE,string);
SetPlayerVirtualWorld(playerid, 0);
SetTimer("racesound",4000,false);
Racer[playerid] = 0;
racestart = 1;
}
when i finish last checkpoint i win but 2nd player is in race why