Guest User

Untitled

a guest
Mar 3rd, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. // --------------------------------
  2. // Simple Paintball Script created by DooM
  3. // --------------------------------
  4. //#define FILTERSCRIPT
  5. #include <a_samp>
  6. #if defined FILTERSCRIPT
  7.  
  8. /* --Add these lines in your GM if you want to see the icon and text label
  9. CreatePickup(1314, 1, 1310.3346,-1367.9858,13.5434,0); // Paintball Icon
  10. Create3DTextLabel("Paintball \n Use /enterpb to join!",COLOR_DBLUE, 1310.3346,-1367.9858,13.5434, 20, 0,1); // text label
  11. */
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n--------------------------------------");
  16. print(" [FS]RC Battlefield Paintball by DooM ");
  17. print("--------------------------------------\n");
  18. return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. #else
  27.  
  28. main()
  29. {
  30. print("\n----------------------------------");
  31. print(" [FS]RC Battlefield Paintball by DooM ");
  32. print("----------------------------------\n");
  33.  
  34. }
  35.  
  36. #endif
  37.  
  38. public OnPlayerCommandText(playerid, cmdtext[])
  39. {
  40. if (strcmp("/enterpb", cmdtext, true) == 0)
  41. {
  42. if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1310.1757, -1367.2603, 13.5262)) return SendClientMessage(playerid,0xAA3333AA,"You are not at Paintball");
  43. {
  44. SetPlayerPos(playerid,-972.4957,1060.9830,1345.6690); // RC Battlefield Arena cords
  45. SetPlayerInterior(playerid,10);
  46. GivePlayerWeapon(playerid,24,99999); // DEAGLE
  47. GivePlayerWeapon(playerid,27,99999); // SPAS12
  48. SendClientMessage(playerid,0x2641FEAA,"You have joined paintball");
  49. }
  50. return 1;
  51. }
  52. if (strcmp("/exitpb", cmdtext, true) == 0)
  53. {
  54. if(!IsPlayerInRangeOfPoint(playerid, 1000.0,-972.4957,1060.9830,1345.6690)) return SendClientMessage(playerid,0xAA3333AA,"You aren't close to the paintball arena");
  55. {
  56. SetPlayerPos(playerid, 1310.1757, -1367.2603, 13.5262);
  57. SetPlayerInterior(playerid, 0);
  58. ResetPlayerWeapons(playerid);
  59. SendClientMessage(playerid,0xFF6347AA,"You have leaved the paintball");
  60. }
  61. return 1;
  62. }
  63. return 0;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment