Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. new pickCurati;
  6.  
  7. #include <a_samp>
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Blank Filterscript by your name here");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. // Don't use these lines if it's a filterscript
  38. SetGameModeText("Blank Script");
  39. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  40. pickCurati = CreatePickup(1240, 2, 1958.3783, 1343.1572, 15.3746, 0);
  41. return 1;
  42. }
  43.  
  44. public OnPlayerCommandText(playerid, cmdtext[])
  45. {
  46. {
  47. if(!strcmp(cmdtext, "/selezionavestiti", true))
  48. {
  49. if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
  50.  
  51. SetPlayerHealth(playerid, 999);
  52. SendClientMessage(playerid, 0x00FF00AA, "{FFFFFF} Hai preso la tua tuta da softair dallo zaino!");
  53. return 1;
  54.  
  55. }
  56.  
  57.  
  58. public OnPlayerPickUpPickup(playerid, pickupid)
  59. {
  60.  
  61. if(pickupid == pickCurati)
  62. {
  63. SendClientMessage(playerid, 0x00FF00AA, "Digita /selezionavestiti per cambiare skin.");
  64. GameTextForPlayer(playerid, "Qui puoi usare /selezionavestiti", 187000,3);
  65. }
  66.  
  67. return 1;
  68. }
  69.  
  70.  
  71.  
  72. _________________________________________________________________________________________________________
  73.  
  74. //DIALOG ARMI SOFTAIR
  75.  
  76. #define DIALOGARMI 1234
  77.  
  78. //LALALALALA
  79.  
  80.  
  81. ShowPlayerDialog(playerid, 1234, 3, "Armi Softair", "M4,\nMP5\nDeagle\nShotgun", "Finito!", "Annulla");
  82.  
  83.  
  84. OnDialogResponde(playerid, dialogid, responde, listitem, inputtext[])
  85. {
  86. switch(dialogid)
  87.  
  88. {
  89.  
  90. case DIALOGARMI:
  91.  
  92. {
  93.  
  94. if(response)
  95.  
  96. {
  97.  
  98. switch(listitem)
  99.  
  100. {
  101.  
  102. case 0: GivePlayerWeapon(playerid, IDM4, 700)
  103. case 1: GiverPlayerWeapon(playerid, IDMP5, 500)
  104. case 2: GivePlayerWeapon(playerid, IDEAGLE, 75)
  105. case 3: GivePlayerWeapon(playerid, IDSHOTGUN, 50)
  106.  
  107. }
  108.  
  109. }
  110. return 1;
  111. }
  112. return 1
  113. }
  114. return 1;
  115. }
Add Comment
Please, Sign In to add comment