11.06.2013, 20:42
eu do /guerra relogo e desaparece podem me ajudar?
if(strcmp(cmd, "/guerra", true) == 0) { if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,CINZA," Vocк nгo pode criar guerra na cadeia!"); return true; } if(TendoGuerra >= 1) { SendClientMessage(playerid, CINZA, " Jб estб tendo uma guerra!"); return true; } new Float,Float:y,Float:z; if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)// EXE { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e o Exйrcito iniciaram uma Guerra.Evitem a бrea!",playername); SendClientMessageToAll(COLOR_EXE, string); GetPlayerPos(playerid,x,y,z); Territorio[MinX] = x-120; Territorio[MinY] = y-120; Territorio[MaxX] = x+120; Territorio[MaxY] = y+120; Territorio[exemortos] = 0; Territorio[talmortos] = 0; Territorio[almortos] = 0; Territorio[GImortos] = 0; GuerraMinX = x-120; GuerraMinY = y-120; GuerraMaxX = x+120; GuerraMaxY = y+120; GZGuerra = GangZoneCreate(x-120,y-120,x+120,y+120); GangZoneShowForAll(GZGuerra,COLORGZ_EXE); BPHInfo[playerid][InicioGuerra] = 1; TendoGuerra = 1; TempoGuerra = SetTimerEx("GuerraTerrorista", 180000, 0, "i", playerid); return true; } if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)// GIA { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e o GIA iniciaram uma Guerra.Evitem a бrea!",playername); SendClientMessageToAll(COR_GIA, string); GetPlayerPos(playerid,x,y,z); Territorio[MinX] = x-120; Territorio[MinY] = y-120; Territorio[MaxX] = x+120; Territorio[MaxY] = y+120; Territorio[exemortos] = 0; Territorio[talmortos] = 0; Territorio[almortos] = 0; Territorio[GImortos] = 0; GuerraMinX = x-120; GuerraMinY = y-120; GuerraMaxX = x+120; GuerraMaxY = y+120; GZGuerra = GangZoneCreate(x-120,y-120,x+120,y+120); GangZoneShowForAll(GZGuerra,COLORGZ_GIA); BPHInfo[playerid][InicioGuerra] = 1; TendoGuerra = 1; TempoGuerra = SetTimerEx("GuerraTerrorista", 180000, 0, "i", playerid); return true; } if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)// GI { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e a FARC iniciaram uma Guerra.Evitem a бrea!",playername); SendClientMessageToAll(COR_FARC, string); GetPlayerPos(playerid,x,y,z); Territorio[MinX] = x-120; Territorio[MinY] = y-120; Territorio[MaxX] = x+120; Territorio[MaxY] = y+120; Territorio[exemortos] = 0; Territorio[talmortos] = 0; Territorio[almortos] = 0; Territorio[GImortos] = 0; GuerraMinX = x-120; GuerraMinY = y-120; GuerraMaxX = x+120; GuerraMaxY = y+120; GZGuerra = GangZoneCreate(x-120,y-120,x+120,y+120); GangZoneShowForAll(GZGuerra,COLORGZ_ALCAIDA); BPHInfo[playerid][InicioGuerra] = 1; TendoGuerra = 1; TempoGuerra = SetTimerEx("GuerraTerrorista", 180000, 0, "i", playerid); return true; } if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)// F ARC { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string, sizeof(string), "%s e a Guerrilheiros Israelitas iniciaram uma Guerra.Evitem a бrea!",playername); SendClientMessageToAll(COR_GI, string); GetPlayerPos(playerid,x,y,z); Territorio[MinX] = x-120; Territorio[MinY] = y-120; Territorio[MaxX] = x+120; Territorio[MaxY] = y+120; Territorio[exemortos] = 0; Territorio[talmortos] = 0; Territorio[almortos] = 0; Territorio[GImortos] = 0; GuerraMinX = x-120; GuerraMinY = y-120; GuerraMaxX = x+120; GuerraMaxY = y+120; GZGuerra = GangZoneCreate(x-120,y-120,x+120,y+120); GangZoneShowForAll(GZGuerra,COLORGZ_GI); BPHInfo[playerid][InicioGuerra] = 1; TendoGuerra = 1; TempoGuerra = SetTimerEx("GuerraTerrorista", 180000, 0, "i", playerid); return true; } return true; } |