Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SAMP ZONE Editor by Grimrandomer */
- /* Version: 1.0.0.5 */
- /* Export: Zone Filterscript */
- /* Total zones: 2 */
- #include <a_samp>
- #include <streamer>
- #define MAX_ZONES 2
- new zones[MAX_ZONES];
- new Float:zones_points_0[] = {
- -1103.0,-914.0,-1163.0,-914.0,-1192.0,-933.0,-1198.0,-979.0,-1171.0,-996.0,-1098.0,-999.0,-1099.0,-1031.0,-1068.0,-1059.0,-1069.0,-938.0,-1103.0,-914.0
- };
- new Float:zones_points_1[] = {
- -1034.0,-1060.0,-1034.0,-1033.0,-1067.0,-1000.0,-1068.0,-1058.0,-1034.0,-1060.0
- };
- new zones_text[MAX_ZONES][64] = {
- "plants",
- "plants 2"
- };
- public OnFilterScriptInit() {
- print("--------------------------------------");
- print("GTA SA Zone Editor by Grimrandomer - Exporter");
- print("--------------------------------------");
- zones[0] = CreateDynamicPolygon(zones_points_0);
- zones[1] = CreateDynamicPolygon(zones_points_1);
- 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, "Welcome to %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, "Goodbye from %s", zones_text[zone]);
- SendClientMessage(playerid, 0xFFFFFFFF, msg);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment