17.08.2015, 07:15
Quote:
PHP код:
|
Код:
public TurfWarTimer(playerid) { if(zAttack[Beach] == 1 && BallasKills > MAX_TURF_KILLS) { zAttack[Beach] = 0; TeamCheck[Beach] == TEAM_BALLAS; SendClientMessageToAll(-1, "{FFD443}[ TurfWar ]: {FFE797}Ballas gang has won"); foreach(new i : Player) { if(gTeam[i] == TEAM_BALLAS) { SetPlayerScore(i, GetPlayerScore(i) + 5); } } } if(zAttack[Beach] == 1 && GrovesKills > MAX_TURF_KILLS) { zAttack[Beach] = 0; TeamCheck[Beach] == TEAM_GROVES; SendClientMessageToAll(-1, "{FFD443}[ TurfWar ]: {FFE797}Ballas gang has won"); foreach(new i : Player) { if(gTeam[i] == TEAM_GROVES) { SetPlayerScore(i, GetPlayerScore(i) + 5); } } } return 1; }