GZShop = GangZoneCreate(151.8124, -1926.849, 315.3026, -1798.393);
GZShop = GangZoneCreate(151.8124, -1926.849, 315.3026, -1798.393); |
if(IsPlayerInShop(playerid)) { if(Dominando[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio."); return true; } if(GuerranoShop == 1) { SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio."); return true; } GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e os Los Aztecas estao dominando o Shopping Center",playername); SendClientMessageToAll(TEAM_AZTECAS_COLOR, string); SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, A Polнcia e todas as gangues foram avisadas!"); SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area ."); GangZoneFlashForAll(GZShop,TEAM_AZTECAS_COLOR); Dominando[playerid] = 1; ProvocoShop[playerid] = 1; GuerranoShop = 1; TempoGuerraShop = SetTimerEx("GuerraShop", 60000, 0, "i", playerid); return true; } if(IsPlayerInPark(playerid)) { if(Dominando[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio."); return true; } |
public GuerraShop(playerid) { new string[128]; new playername[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5) { if(ProvocoShop[playerid] == 1) { if(IsPlayerInShop(playerid)) { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e os Los Aztecas dominaram o Shopping Center.",playername); SendClientMessageToAll(TEAM_AZTECAS_COLOR, string); SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Vocк Dominou Shopping Center."); GangZoneStopFlashForAll(GZShop); GangZoneShowForAll(GZShop, TEAM_AZTECAS_COLOR); Dominando[playerid] = 0; ProvocoShop[playerid] = 0; GuerranoShop = 0; donoShop = 1; KillTimer(TempoGuerraShop); return true; } else { SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Vocк nгo estб no Shopping Center."); Dominando[playerid] = 0; GangZoneStopFlashForAll(GZShop); GangZoneShowForAll(GZShop, 0xFFFFFF96); ProvocoShop[playerid] = 0; GuerranoShop = 0; donoShop = 0; KillTimer(TempoGuerraShop); return true; } } return true; } return true; } |