20.04.2012, 11:20
jop9888 is right... if u made swat team meber as crimal and crimal as swat..
just tmp fix u reallllly needed
just tmp fix u reallllly needed
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
if(gTeam[playerid] == TEAM_SWAT) gSWAT--;
else if(gTeam[playerid] == TEAM_CRIMINALS) gCriminals--;
if(gSWAT== 0)
{
SendClientMessageToAll(COLOR_BLUE, "SWAT has won this round!");
gRounds++;
SetEveryoneToSpawn(playerid);
}
else if(gCriminals == 0)
{
SendClientMessageToAll(COLOR_RED, "Criminals has won this round!");
gRounds++;
SetEveryoneToSpawn(playerid);
}
if(gCriminals > 0 && gSWAT > 0)
{
gSpectating[playerid] = 1;
SetToSpectate(playerid);
}
CancelSpectate(playerid);
if(gRounds >= 6) GameModeExit();
return 1;
}