19.06.2014, 06:17
Hello guys.
I have a problem with GangZoneFlashForAll. When war it started, GangZoneFlashForAll not working, but if i put them in other command it's working
and turf
new gzgrove;
GangZoneShowForPlayer(playerid, gzgrove, 0x00FF00D0);
gzgrove = GangZoneCreate(2438.761718, -1734.158325, 2622.761718, -1630.158325);
I have a problem with GangZoneFlashForAll. When war it started, GangZoneFlashForAll not working, but if i put them in other command it's working
Код:
if(strcmp(cmd, "/startwar", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 5) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /startwar list , /startwar [locul]"); return 1; } if(strcmp(x_nr,"list",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "_________Places_List_________"); SendClientMessage(playerid, COLOR_GRAD1, "1: BLUEBERRY 2: GSLS 3: BSLS"); return 1; } if(strcmp(x_nr,"1",true)==0 && IsWar==true) return SendClientMessage(playerid, COLOR_GRAD1, "A war is already started!"); else if(strcmp(x_nr,"1",true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_WHITE, "{6EF83C}|______War Started______|"); format(string, sizeof(string), "By Leader: {FA8072}%s.",sendername); SendClientMessageToAll(COLOR_WHITE, string); SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR] {EE2C2C}The Mafia{D3D3D3} - {97FFFF}VLA{D3D3D3} - {CD3278}Ballas {00FA9A}au declarat war !"); SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR] Zona: {FFFFFF}BlueBerry"); SendClientMessageToAll(COLOR_WHITE, "Premiu: {F81414}50.000{33AA33}${FFFFFF} + {F81414}10000 {33AA33}mats{FFFFFF} + {F81414}300 {33AA33}drugs."); SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam sa evitati zona BlueBerry !"); SendClientMessageToAll(COLOR_WHITE, "{6EF83C}|______War Started______|"); wartimer3 = SetTimer("WarOver", 2700000, 0); TimeLeft = 2700; wartimer2 = SetTimer("WarTime", 1000, 1); Alianta1 = 0; Alianta2 = 0; GangZoneFlashForAll(gzgrove, COLOR_RED); for(new a = 0; a <= MAX_PLAYERS; a++) { if(IsPlayerConnected(a)) { new leader = PlayerInfo[a][pLeader]; new member = PlayerInfo[a][pMember]; if(leader==5||leader==6||leader==15||leader==16||leader==17||leader==18||member==5||member==6||member==15||member==16||member==17||member==18) { SpawnPlayer(a); PlayerInfo[a][pWarKills] = 0; } } }
new gzgrove;
GangZoneShowForPlayer(playerid, gzgrove, 0x00FF00D0);
gzgrove = GangZoneCreate(2438.761718, -1734.158325, 2622.761718, -1630.158325);