Advertisement
Yton

Untitled

Jan 29th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #include <a_samp>
  2. #include <streamer>
  3.  
  4. #define MAX_ZONES 1
  5.  
  6. new zones[MAX_ZONES];
  7. new Float:zones_points_0[] = {
  8. 1723.0,687.0,1723.0,687.0,1723.0,687.0,1723.0,687.0,1723.0,687.0
  9. };
  10. new zones_text[MAX_ZONES][64] = {
  11. "SPAUSKITE ENTER"
  12. };
  13.  
  14.  
  15. public OnFilterScriptInit() {
  16. zones[0] = CreateDynamicPolygon(zones_points_0);
  17. Create3DTextLabel("Iëjimas", 0xFF6E00FF, 1723.0,687.0, 10.82, 30, 0, 1);
  18.  
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit() {
  23. return 1;
  24. }
  25.  
  26. public OnPlayerEnterDynamicArea(playerid, areaid) {
  27. for (new zone=0; zone<MAX_ZONES; zone++) {
  28. if (areaid==zones[zone]) {
  29. new msg[90];
  30. format(msg, 90, "Norėdami įeiti %s", zones_text[zone]);
  31. SendClientMessage(playerid, 0xFFFFFFFF, msg);
  32. }
  33. }
  34. return 1;
  35. }
  36.  
  37. public OnPlayerLeaveDynamicArea(playerid, areaid) {
  38. for (new zone=0; zone<MAX_ZONES; zone++) {
  39. if (areaid==zones[zone]) {
  40. new msg[90];
  41. format(msg, 90, "Norėdami išeiti %s", zones_text[zone]);
  42. SendClientMessage(playerid, 0xFFFFFFFF, msg);
  43. }
  44. }
  45. return 1;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement