08.09.2013, 18:30
There are two GangZone on my server, and when I type the command to start dominating "1" even though the GangZone "2" begins to dominate GangZone "1" and when I dominatethe GangZone "2" even though the GangZone "1" begins to dominate GangZone "2" ie, no matter what I'm GangZone, begins to dominate the other existing GangZones.
pawn Код:
GangZoneCreate(1544.6627,-1714.5214, 1579.7961,-1748.0782);
pawn Код:
COMMAND:dominar(playerid)
{
new string[200];
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
new Float:X, Float:Y, Float:Z;
GetPlayerPos (playerid, X, Y, Z);
if(X <= 1544.6627 && X >= -1714.5214 && Y <= 1579.7961 && Y >= -1748.0782)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)) continue;
if(DominandoPPLS[i] == 0)
GangZoneFlashForAll(GZPortPrefLS,GetPlayerColor(playerid));
GangZoneFlashForAll(GZPortPrefLS2,GetPlayerColor(playerid));
DominandoPPLS[playerid] = 1;
format(string, sizeof(string), "[DOMINIO]%s comeзou a dominar os Portoes da Prefeitura de Los Santos.Naзao:%s",nome,NomeWorlds[World[playerid]]);
SendClientMessage(playerid,-1,string);
SetTimerEx("TimeDominio", 5000, false, "i", playerid);
SetTimerEx("FindPos", 1000, true, "i", playerid);
return 1;
}
}else{ return SendClientMessage(playerid,-1,"[DOMINIO] Voce nao esta em um local de dominio.");}
return 1;
}