09.09.2012, 23:27
(
Последний раз редактировалось s4kuL; 10.09.2012 в 01:47.
)
Criei um tуpico mais acho que ninguйm sabia resolvi criar de novo 
Todo o cуdigo:
Coords das GZ's aqui.

Todo o cуdigo:
pawn Код:
// === Gang Zones D === (Topo)
#define GZS_CRIADAS 8
new GZCriadas[GZS_CRIADAS];
new NomesGZs[GZS_CRIADAS][] =
{
"BarcoN",//1
"BarcoP",//2
"Golfers",//3
"Hunter",//4
"Industria",//5
"PertoDoAero",//6
"Puteiro",//7
"Wokers"//8
};
new CordGZs[GZS_CRIADAS][8] =
{
{-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
{-2545.777,1506.446,-2253.83,1588.191}, // BarcoP
{-2811.853,-407.9592,-2618.718,-183.0962}, // Golfers
{-2556.915,-695.9416,-2483.524,-569.7027}, // Hunter
{-1158.624,-774.8409,-950.0385,-565.7578}, // Industria
{-2195.441,-1051.009,-1845.104,-688.9946}, // PertoDoAero
{-2738.462,1319.935,-2553.053,1548.743}, // Puteiro
{-2151.333,112.7761,-1989.101,361.3089} // Wokers
};
//------------ GZ's Dominaveis ----------- (OnGameModeInit)
for(new i = 0; i <GZS_CRIADAS; i++) //Loop
{
GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3]);
}
public Terminar(playerid)
{
if(!IsAreaInGangCheck(playerid))
{
SendClientMessage(playerid,red,"Nгo dominou");
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new name[MAX_PLAYER_NAME],string[150];
GetPlayerName(playerid, name, sizeof(name));
for(new i=0; i < GZS_CRIADAS; i++)
if(x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
{
format(string,sizeof(string), "-OpServ- %s conseguiu dominar a gangzone: %s.",name,NomesGZs[i]);
GangZoneStopFlashForAll(GZCriadas[i]);
}
SendAdminMessage(green,string);
return 1;
}
// ------------- Dominaveis --------------- (OnPlayerSpawn)
for(new i = 0; i <GZS_CRIADAS; i++) //Loop
{
GangZoneShowForPlayer(playerid,GZCriadas[i],0xFFFFFFAA);
}
// ============== Stock GZ's ==================
stock IsAreaInGangCheck(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i=0; i < GZS_CRIADAS; i++)
if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) return 1;
return 0;
}
//---------- Comando para dominar ------------
CMD:dominar(playerid,params[])
{
if(!IsAreaInGangCheck(playerid)) return SendClientMessage(playerid,red,"-Erro- Vocк nгo estб em uma gangzone");
new Float:x, Float:y, Float:z;
new string[100];
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i < GZS_CRIADAS; i++)
if(x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
{
GangZoneFlashForAll(GZCriadas[i],GetPlayerColor(playerid));
}
SendAdminMessage(green,string);
SetTimer("Terminar",120000,false);
return 1;
}