Army area?
#1

How to make an area like this, as like the purple thing?

Pic:


Reply
#2

use any of the Gangzone editor to make the zone.

https://sampforum.blast.hk/showthread.php?tid=311553

https://sampforum.blast.hk/showthread.php?tid=119157

https://sampforum.blast.hk/showthread.php?tid=467190
Reply
#3

I used this: https://sampforum.blast.hk/showthread.php?tid=467190

I've made the area but how can i change the color of the area cause it seems its stood defualt?
Reply
#4

GangZoneShowForAll(here gang zone game , here gang zone color);
Reply
#5

Code:

Код:
#include <a_samp>
#include <streamer>

#define MAX_ZONES 1

new zones[MAX_ZONES];
new Float:zones_points_0[] = {
	2676.0,-2394.0,2806.0,-2394.0,2807.0,-2581.0,2676.0,-2581.0,2676.0,-2394.0
};
new zones_text[MAX_ZONES][64] = {
	"Army area"
};


public OnFilterScriptInit() {
	print("--------------------------------------");
	print("GTA SA Zone Editor by Grimrandomer - Exporter");
	print("--------------------------------------");

	zones[0] = CreateDynamicPolygon(zones_points_0);

	return 1;
}

public OnFilterScriptExit() {
	return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid) {
	for (new zone=0; zone<MAX_ZONES; zone++) {
		if (areaid==zones[zone]) {
			new msg[90];
			format(msg, 90, "Entering the army zone... %s", zones_text[zone]);
			SendClientMessage(playerid, 0xFFFFFFFF, msg);
		}
	}
	return 1;
}

public OnPlayerLeaveDynamicArea(playerid, areaid) {
	for (new zone=0; zone<MAX_ZONES; zone++) {
		if (areaid==zones[zone]) {
			new msg[90];
			format(msg, 90, "Leaving the army zone... %s", zones_text[zone]);
			SendClientMessage(playerid, 0xFFFFFFFF, msg);
		}
	}
	return 1;
}
where should i put it?
Reply
#6

anyone pls
Reply
#7

Quote:
Originally Posted by 123bob123
Посмотреть сообщение
Code:

Код:
#include <a_samp>
#include <streamer>

#define MAX_ZONES 1

new zones[MAX_ZONES];
new Float:zones_points_0[] = {
	2676.0,-2394.0,2806.0,-2394.0,2807.0,-2581.0,2676.0,-2581.0,2676.0,-2394.0
};
new zones_text[MAX_ZONES][64] = {
	"Army area"
};


public OnFilterScriptInit() {
	print("--------------------------------------");
	print("GTA SA Zone Editor by Grimrandomer - Exporter");
	print("--------------------------------------");

	zones[0] = CreateDynamicPolygon(zones_points_0);

	return 1;
}

public OnFilterScriptExit() {
	return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid) {
	for (new zone=0; zone<MAX_ZONES; zone++) {
		if (areaid==zones[zone]) {
			new msg[90];
			format(msg, 90, "Entering the army zone... %s", zones_text[zone]);
			SendClientMessage(playerid, 0xFFFFFFFF, msg);
		}
	}
	return 1;
}

public OnPlayerLeaveDynamicArea(playerid, areaid) {
	for (new zone=0; zone<MAX_ZONES; zone++) {
		if (areaid==zones[zone]) {
			new msg[90];
			format(msg, 90, "Leaving the army zone... %s", zones_text[zone]);
			SendClientMessage(playerid, 0xFFFFFFFF, msg);
		}
	}
	return 1;
}
where should i put it?
You can use this as FS but if you want to put in GM copy all the code and put in GM.
/*
remove this
public OnFilterScriptInit() {
print("--------------------------------------");
print("GTA SA Zone Editor by Grimrandomer - Exporter");
print("--------------------------------------");

zones[0] = CreateDynamicPolygon(zones_points_0);

return 1;
}
*/

put it under OnGameModeInt
zones[0] = CreateDynamicPolygon(zones_points_0);
Reply
#8

Errors:

Quote:

SA-MP Server\gamemodes\grandlarc.pwn(359) : error 017: undefined symbol "Army"
SA-MP Server\gamemodes\grandlarc.pwn(359) : error 017: undefined symbol "area"
SA-MP Server\gamemodes\grandlarc.pwn(359) : error 029: invalid expression, assumed zero
SA-MP Server\gamemodes\grandlarc.pwn(359) : fatal error 107: too many error messages on one line

Reply
#9

Did you put this at the Top of GM>?

#define MAX_ZONES 1

new zones[MAX_ZONES];
new Float:zones_points_0[] = {
2676.0,-2394.0,2806.0,-2394.0,2807.0,-2581.0,2676.0,-2581.0,2676.0,-2394.0
};
new zones_text[MAX_ZONES][64] = {
"Army area"
};
Reply
#10

yes i did
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)