04.02.2017, 14:44
Boa tarde, utilizei esse editor http://x337.us/gz/ testei e realmente funciona, sу nгo consegui adaptar para ao invйs de ser uma gangzone ser somente uma marcaзгo em azul no mapa, para que todos identifiquem a бrea neutra. Se puder me ajudar:
Coordenadas:
E o cуdigo para exportar a gangzone caso precisar de alguma informaзгo:
Coordenadas:
Code:
GangZoneCreate(1043.2662963867188, -1847.16796875, 1182.4264526367188, -1718.26171875);
PHP Code:
#include <a_samp>
#define MAX_GANGZONE 1
enum e_Zones {
Float:zoneminx, // gang zone minx
Float:zoneminy, // gang zone miny
Float:zonemaxx, // gang zone maxx
Float:zonemaxy, // gang zone maxx
zonecolor, // gang zone color
zoneid // gang zone id
}
new g_ZoneData[MAX_GANGZONE][e_Zones] = {
// Float:zoneminx, Float:zoneminy, Float:zonemaxx, Float:zonemaxy, zonecolor, zoneid
{1043.2662963867188, -1847.16796875, 1182.4264526367188, -1718.26171875, 0x00f7ffff} // Respawn Civil
};
public OnGameModeInit()
{
for(new i; i < MAX_GANGZONE; i++) // Loop every gang zone data and create them...
{
g_ZoneData[i][zoneid] = GangZoneCreate(g_ZoneData[i][zoneminx], g_ZoneData[i][zoneminy], g_ZoneData[i][zonemaxx], g_ZoneData[i][zonemaxy]);
}
return 1;
}
public OnPlayerConnect(playerid)
{
for(new i; i < MAX_GANGZONE; i++) // Loop every gang zone data and show them to playerid...
{
GangZoneShowForPlayer(playerid, g_ZoneData[i][zoneid], g_ZoneData[i][zonecolor]);
}
return 1;
}