Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new i=0;i<MAX_GZS;i++)
- {
- if(GetPlayerVisibleDynamicCP(playerid) == ChecksDominio[i])
- {
- if(Player[playerid][pAdmin] >= 1 || Player[playerid][pFrente] >= 1 || Player[playerid][pBOPE] >= 2 || Player[playerid][pPMRJ] >= 2 || Player[playerid][pPM] >= 2)
- {
- if(!VerificarRival(playerid))
- return SendClientMessage(playerid, COR_ERRO, "ERRO: Você não pode dominar uma favela com um rival por perto!");
- if(ContagemDominio[i] != 0) return 1;
- if((strcmp(GZDono[i], "CVR", true) == 0) && Player[playerid][pTorcida] == 1 || Player[playerid][pTorcida] == 2 || Player[playerid][pTorcida] == 3 || Player[playerid][pTorcida] == 4 ||
- (strcmp(GZDono[i], "CP", true) == 0) && Player[playerid][pTorcida] == 5 || Player[playerid][pTorcida] == 6 || Player[playerid][pTorcida] == 7 || Player[playerid][pTorcida] == 8 ||
- (strcmp(GZDono[i], "TD3", true) == 0) && Player[playerid][pTorcida] == 5 || Player[playerid][pTorcida] == 6 || Player[playerid][pTorcida] == 7 || Player[playerid][pTorcida] == 8 ||
- (strcmp(GZDono[i], "ADA", true) == 0) && Player[playerid][pTorcida] == 9 || Player[playerid][pTorcida] == 10 || Player[playerid][pTorcida] == 11 || Player[playerid][pTorcida] == 12 ||
- (strcmp(GZDono[i], "CMD", true) == 0) && Player[playerid][pTorcida] == 1 || Player[playerid][pTorcida] == 2 || Player[playerid][pTorcida] == 3 || Player[playerid][pTorcida] == 4 ||
- (strcmp(GZDono[i], "MLC", true) == 0) && Player[playerid][pTorcida] == 13 || Player[playerid][pTorcida] == 14 || Player[playerid][pTorcida] == 15 || Player[playerid][pTorcida] == 16 ||
- (strcmp(GZDono[i], "PCC", true) == 0) && Player[playerid][pTorcida] == 17 || Player[playerid][pTorcida] == 18 || Player[playerid][pTorcida] == 19 || Player[playerid][pTorcida] == 20 ||
- (strcmp(GZDono[i], "CHOQUE", true) == 0) && Player[playerid][pPM] >= 2 ||
- (strcmp(GZDono[i], "BOPE", true) == 0) && Player[playerid][pBOPE] >= 2 ||
- (strcmp(GZDono[i], "PMBA", true) == 0) && Player[playerid][pPMRJ] >= 2)
- return SendClientMessage(playerid, COR_ERRO, "ERRO: Está favela já é da sua facção/organização!");
- SetPVarInt(playerid,"GZAtacada",i);
- ContagemDominio[i] = SetTimerEx("Contagem",1000,1,"i",playerid);
- GangZoneFlashForAll(GangZonas[GetPVarInt(playerid,"GZAtacada")],GetPlayerColor(playerid));
- SendFormattedMessageToAll(COR_INFO, "[FB]: %s está dominando a favela '%s' da facção '%s'.", getPName(playerid), GangZone[i][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
- return 1;
- }
- else SendClientMessage(playerid, COR_ERRO, "ERRO: Você não tem permissão para dominar!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement