#include <a_samp>new zone;public OnFilterScriptInit(){ zone = GangZoneCreate(54,1782,330,2106); return 1;}public OnPlayerRequestSpawn(playerid){ GangZoneShowForPlayer(playerid, zone, 0xFF000090); return 1;}public OnFilterScriptExit(){ GangZoneDestroy(zone); return 1;}stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy){ new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); return minx < x < maxx && miny < y < maxy;}
CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);//egy téglalap létrehozásaforward OnPlayerEnterDynamicArea(playerid, areaid);//amikor belemegy a zónábaforward OnPlayerLeaveDynamicArea(playerid, areaid);//amikor ki megy belõle