18.06.2016, 06:04
(
Последний раз редактировалось Lуs; 19.06.2016 в 01:14.
)
Код:
for(new i=0;i<MAX_GZS;i++) { if(GetPlayerVisibleDynamicCP(playerid) == ChecksDominio[i]) { if(Player[playerid][pAdmin] >= 1) { if(ContagemDominio[i] != 0) return 1; if((strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 1 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 2 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 3 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 4 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 5 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 6 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 7 || (strcmp(GZDono[i], "GROOVE", true) == 0) && Player[playerid][pGroove] == 8 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 9 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 10 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 11 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 12 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 13 || (strcmp(GZDono[i], "MANGA ROSA", true) == 0) && Player[playerid][pManga] == 14 || (strcmp(GZDono[i], "PM", true) == 0) && Player[playerid][pPM] >= 2 || (strcmp(GZDono[i], "PM", true) == 0) && Player[playerid][pPM] >= 2 || (strcmp(GZDono[i], "PM", true) == 0) && Player[playerid][pPM] >= 2) return SendClientMessage(playerid, COR_ERRO, "Sua gangue ja domingou essa area.!"); SetPVarInt(playerid,"GZAtacada",i); ContagemDominio[i] = SetTimerEx("Contagem",1000,1,"i",playerid); GangZoneFlashForAll(GangZonas[GetPVarInt(playerid,"GZAtacada")],GetPlayerColor(playerid)); SendFormattedMessageToAll(COR_INFO, "%s estб invadindo a area vip", getPName(playerid)); return 1; } else SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo invadir!"); } } return 1; }
exemplo manga rosa invadindo a groove, so poder invadir se pelo menos um ADM da groove estiver online