Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <streamer>
- #define MAX_ZONES 1
- new zones[MAX_ZONES];
- new Float:zones_points_0[] = {
- 1723.0,687.0,1723.0,687.0,1723.0,687.0,1723.0,687.0,1723.0,687.0
- };
- new zones_text[MAX_ZONES][64] = {
- "SPAUSKITE ENTER"
- };
- public OnFilterScriptInit() {
- zones[0] = CreateDynamicPolygon(zones_points_0);
- Create3DTextLabel("Iëjimas", 0xFF6E00FF, 1723.0,687.0, 10.82, 30, 0, 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, "Norėdami įeiti %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, "Norėdami išeiti %s", zones_text[zone]);
- SendClientMessage(playerid, 0xFFFFFFFF, msg);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement