Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <gangzones>
- #include <zcmd>
- new const Float:g_Zones[16][4] = {
- { 1990.0, 1518.5, 2014.0, 1572.5 },
- { 2142.0, 911.5, 2230.0, 979.5 },
- { 2085.0, 1203.5, 2180.0, 1365.5 },
- { 2520.0, 2057.5, 2605.0, 2105.5 },
- { 2084.0, 1638.5, 2239.0, 1726.5 },
- { 2352.0, 1071.5, 2423.0, 1192.5 },
- { 2082.0, 1085.5, 2182.0, 1185.5 },
- { 2352.0, 958.5, 2429.0, 1071.5 },
- { 2451.0, 898.5, 2544.0, 949.5 },
- { 2082.0, 980.5, 2182.0, 1085.5 },
- { 2234.0, 2418.5, 2363.0, 2507.5 },
- { 1898.0, 2712.5, 2106.0, 2789.5 },
- { 1900.0, 2636.5, 2106.0, 2712.5 },
- { 2237.0, 2722.5, 2337.0, 2822.5 },
- { 2337.0, 2721.5, 2460.0, 2822.5 },
- { 1258.0, 2636.5, 1395.0, 2703.5 }
- };
- new Zones[16];
- public OnFilterScriptInit()
- {
- for(new i = sizeof(g_Zones)-1; i > -1; i--)
- {
- Zones[i] = GangZoneCreate(g_Zones[i][0], g_Zones[i][1], g_Zones[i][2], g_Zones[i][3]);
- }
- for(new i = sizeof(g_Zones)-1; i > -1; i--)
- {
- GangZoneShowForAll(Zones[i], 0xFF0000FF);
- }
- return true;
- }
- public OnPlayerConnect(playerid)
- {
- for(new i = sizeof(g_Zones)-1; i > -1; i--)
- {
- GangZoneShowForPlayer(playerid, Zones[i], 0xFF0000FF);
- }
- return true;
- }
- public OnPlayerEnterGangZone(playerid, gangzoneid)
- {
- new tmpstr[128];
- format(tmpstr, sizeof tmpstr, "Debug: player %i has entered zone %i", playerid, gangzoneid);
- SendClientMessageToAll(-1, tmpstr);
- return true;
- }
- public OnPlayerExitGangZone(playerid, gangzoneid)
- {
- new tmpstr[128];
- format(tmpstr, sizeof tmpstr, "Debug: player %i has exit zone %i", playerid, gangzoneid);
- SendClientMessageToAll(-1, tmpstr);
- return true;
- }
- CMD:test1(playerid)
- {
- new tmpstr[128];
- format(tmpstr, sizeof tmpstr, "Seconds since enter: %i", GetSecondsSinceEnter(playerid));
- SendClientMessage(playerid, -1, tmpstr);
- return true;
- }
- CMD:test2(playerid)
- {
- new tmpstr[128];
- format(tmpstr, sizeof tmpstr, "Seconds since exit: %i", GetSecondsSinceExit(playerid));
- SendClientMessage(playerid, -1, tmpstr);
- return true;
- }
Add Comment
Please, Sign In to add comment