SA-MP Forums Archive
[Ajuda] GzGuerra sumindo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GzGuerra sumindo (/showthread.php?tid=443387)



GzGuerra sumindo - VSxD - 11.06.2013

eu do /guerra relogo e desaparece podem me ajudar?


Respuesta: GzGuerra sumindo - Wendell - 11.06.2013

Quote:
Originally Posted by VSxD
Посмотреть сообщение
eu do /guerra relogo e desaparece podem me ajudar?
Se postar o code , atй penso .


Re: GzGuerra sumindo - VSxD - 11.06.2013

Quando eu reelogo o GzGuerra desaparece
Quote:

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;
}




Re: Respuesta: GzGuerra sumindo - VSxD - 11.06.2013

Quote:
Originally Posted by Wendell
Посмотреть сообщение
Se postar o code , atй penso .
Code Postado


Respuesta: GzGuerra sumindo - iCracker - 11.06.2013

Coloque em [pawn] [*/pawn] para que os demais entendam o cуdigo para lhe ajudar.

Retire o *.