Guest User

Untitled

a guest
Sep 20th, 2014
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.46 KB | None | 0 0
  1. /* SAMP ZONE Editor by Grimrandomer */
  2. /* Version: 1.0.0.5 */
  3. /* Export: Zone Filterscript */
  4. /* Total zones: 2 */
  5.  
  6. #include <a_samp>
  7. #include <streamer>
  8.  
  9. #define MAX_ZONES 2
  10.  
  11. new zones[MAX_ZONES];
  12. new Float:zones_points_0[] = {
  13.     -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
  14. };
  15. new Float:zones_points_1[] = {
  16.     -1034.0,-1060.0,-1034.0,-1033.0,-1067.0,-1000.0,-1068.0,-1058.0,-1034.0,-1060.0
  17. };
  18. new zones_text[MAX_ZONES][64] = {
  19.     "plants",
  20.     "plants 2"
  21. };
  22.  
  23.  
  24. public OnFilterScriptInit() {
  25.     print("--------------------------------------");
  26.     print("GTA SA Zone Editor by Grimrandomer - Exporter");
  27.     print("--------------------------------------");
  28.  
  29.     zones[0] = CreateDynamicPolygon(zones_points_0);
  30.     zones[1] = CreateDynamicPolygon(zones_points_1);
  31.  
  32.     return 1;
  33. }
  34.  
  35. public OnFilterScriptExit() {
  36.     return 1;
  37. }
  38.  
  39. public OnPlayerEnterDynamicArea(playerid, areaid) {
  40.     for (new zone=0; zone<MAX_ZONES; zone++) {
  41.         if (areaid==zones[zone]) {
  42.             new msg[90];
  43.             format(msg, 90, "Welcome to %s", zones_text[zone]);
  44.             SendClientMessage(playerid, 0xFFFFFFFF, msg);
  45.         }
  46.     }
  47.     return 1;
  48. }
  49.  
  50. public OnPlayerLeaveDynamicArea(playerid, areaid) {
  51.     for (new zone=0; zone<MAX_ZONES; zone++) {
  52.         if (areaid==zones[zone]) {
  53.             new msg[90];
  54.             format(msg, 90, "Goodbye from %s", zones_text[zone]);
  55.             SendClientMessage(playerid, 0xFFFFFFFF, msg);
  56.         }
  57.     }
  58.     return 1;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment