23.02.2015, 15:55
o local do /guerra so aparece pra quem estava on no servidor quem loga apуs o /guerra nгo consegue ver a area. n consigo resolver isso ajuda pls.
new guerra;
new pGuerra;
if(pGuerra == 3) GangZoneShowForPlayer(playerid, guerra, TEAM_GREEN_COLOR);
else if(pGuerra == 6) GangZoneShowForPlayer(playerid, guerra, COLOR_ALCAIDA);
else if(pGuerra == 20) GangZoneShowForPlayer(playerid, guerra, COLOR_LIGHTBLUE);
if(strcmp(cmd,"/guerra", true) == 0)
{
if(pGuerra > 0)
{
SendClientMessage(playerid, COLOR_GREY, "Jб estб tendo uma guerra, aguarde ela terminar.");
return 1;
}
if(PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 3)
{
pGuerra = 3;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerra = GangZoneCreate(X-150,Y-150,X+150,Y+150);
GangZoneShowForAll(guerra,TEAM_GREEN_COLOR);
tempoguerra = SetTimer("guerrat",12000000,0);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s e o nosso Exйrcito acabaram de iniciar uma Guerra, nгo se aproximem da Бrea marcada a Verde!", pName);
SendClientMessageToAll(GetPlayerColor(playerid), string);
GuerraX = X-150; GuerraY = Y-150; GuerraZ = X+150; GuerraA = Y+150;
SetPlayerMapIcon(playerid, 39,Float:X,Float:Y,Float:Z, 44, 0);
}
if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembro] == 6)
{
pGuerra = 6;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerra = GangZoneCreate(X-150,Y-150,X+150,Y+150);
GangZoneShowForAll(guerra,COLOR_ALCAIDA);
tempoguerra = SetTimer("guerrat",12000000,0);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s e a ASFARC acabaram de iniciar uma Guerra, nгo se aproximem da Бrea marcada a Preto!", pName);
SendClientMessageToAll(GetPlayerColor(playerid), string);
GuerraX = X-100; GuerraY = Y-150; GuerraZ = X+150; GuerraA = Y+150;
SetPlayerMapIcon(playerid, 39,Float:X,Float:Y,Float:Z, 44, 0);
}
if(PlayerInfo[playerid][pLider] == 20 || PlayerInfo[playerid][pMembro] == 20)
{
pGuerra = 20;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerra = GangZoneCreate(X-150,Y-150,X+150,Y+150);
GangZoneShowForAll(guerra,COLOR_LIGHTBLUE);
tempoguerra = SetTimer("guerrat",12000000,0);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s e os Guerrilheiros Israelitas acabaram de iniciar uma Guerra, nгo se aproximem da Бrea marcada a Azul!", pName);
SendClientMessageToAll(GetPlayerColor(playerid), string);
GuerraX = X-100; GuerraY = Y-150; GuerraZ = X+150; GuerraA = Y+150;
SetPlayerMapIcon(playerid, 39,Float:X,Float:Y,Float:Z, 44, 0);
}
return 1;
}
forward guerrat();
public guerrat()
{
pGuerra = 0;
GangZoneDestroy(guerra);
KillTimer(tempoguerra);
SendClientMessageToAll(AZULCLARO, "A guerra chegou ao fim,e a бrea jб poderб ser habitada novamente!");
GangZoneHideForAll(guerra);
return 1;
}