23.09.2016, 16:13
hey guys i have this commnd to stop a war 1 or 2 it stop's the war but the flash for that turf is still going on and if i use /turfs on then /turfs off the turf is flashing with a white color
is something wrong here?
Код HTML:
CMD:stopwar(playerid, params[]) { new wartype[20], string2[1000]; new zone = GetPlayerZone(playerid); if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!"); if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!"); if(sscanf(params,"s[20]", wartype)) return SendClientMessage(playerid, COLOR_SYN, "Tasteaza:{FFFFFF} /stopwar <War1 / War2"); { if(strmatch(wartype,"War1")) { InWar[Attackers] = 0; InWar[Defenders] = 0; WarPause[Attackers] = gettime() + 600; Attackers = 99; Defenders = 99; ScoreAtt = 0.0; ScoreDef = 0.0; War = 0; TakeON[zone] = 0; WarTime[0] = 0; DestroyWarPickups(1); PlayerInfo[playerid][pPersonalKills] = 0; Update(playerid, pPersonalKillsx); PlayerInfo[playerid][pPersonalDeaths] = 0; Update(playerid, pPersonalDeathsx); SetPlayerVirtualWorld(playerid, 0); GangZoneStopFlashForAll(Zone[zone]); format(string2, sizeof(string2), "Admin: %s a oprit Warul 1 dintre: %s - %s", GetName(playerid), FactionName[Attackers], FactionName[Defenders]); SendClientMessageToAll(0xE0FFFFAA, string2); } if(strmatch(wartype,"War2")) { InWar[Attackers2] = 0; InWar[Defenders2] = 0; WarPause[Attackers2] = gettime() + 600; Attackers2 = 99; Defenders2 = 99; ScoreAtt2 = 0.0; ScoreDef2 = 0.0; War2 = 0; TakeON[zone] = 0; WarTime[1] = 0; DestroyWarPickups(2); PlayerInfo[playerid][pPersonalKills] = 0; Update(playerid, pPersonalKillsx); PlayerInfo[playerid][pPersonalDeaths] = 0; Update(playerid, pPersonalDeathsx); SetPlayerVirtualWorld(playerid, 0); GangZoneStopFlashForAll(Zone[zone]); format(string2, sizeof(string2), "Admin: %s a oprit Warul 2 dintre: %s - %s", GetName(playerid), FactionName[Attackers2], FactionName[Defenders2]); SendClientMessageToAll(0xE0FFFFAA, string2); } } return 1; }