Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. /*
  2.  
  3. TEST LOL
  4. */
  5.  
  6.  
  7. //--------------Defines--------------
  8. #include <a_samp>
  9. #define FILTERSCRIPT
  10. #define DIALOG_RPH 1
  11. #if defined FILTERSCRIPT
  12. //-----------------------------------
  13.  
  14.  
  15. //--------------Colors-------------
  16. #define COLOR_RED 0xE51212
  17. #define COLOR_LGREEN 0x7CFF00
  18. #define COLOR_YELLOW 0xe8ea34
  19. //---------------------------------
  20.  
  21.  
  22. new Menu:Tuto;
  23.  
  24. //-------------------------------------------------------------------------
  25. public OnFilterScriptInit()
  26. {
  27. print("\n--------------------------------------");
  28. print(" RPH (Roleplay Help) by R4nd4ll");
  29. print("--------------------------------------\n");
  30. Tuto = CreateMenu("Roleplay Rules help", 1, 84, 184, 500, 500);
  31. SetMenuColumnHeader(Tuto, 0, "[Your server name] Rules");
  32. AddMenuItem(Tuto, 0, "DM");
  33. AddMenuItem(Tuto, 0, "MG");
  34. AddMenuItem(Tuto, 0, "PG");
  35. AddMenuItem(Tuto, 0, "RK");
  36. AddMenuItem(Tuto, 0, "SK");
  37. AddMenuItem(Tuto, 0, "KoS");
  38. AddMenuItem(Tuto, 0, "CS");
  39. AddMenuItem(Tuto, 0, "QS");
  40. AddMenuItem(Tuto, 0, "[LEO] RT");
  41. AddMenuItem(Tuto, 0, "/me Usage");
  42. AddMenuItem(Tuto, 0, "/do Usage");
  43. return 1;
  44. }
  45.  
  46. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  47. {
  48. if(dialogid == 1)
  49. {
  50. if(response)
  51. {
  52. switch(listitem)
  53. {
  54. case 0: //DM
  55. {
  56. SendClientMessage(playerid, COLOR_RED,"-----------DM - Deatmatching-----------");
  57. SendClientMessage(playerid, COLOR_YELLOW,"Deatmatching is basically killing a player without any valid roleplay reason.");
  58. SendClientMessage(playerid, COLOR_LGREEN,"E.G : Killing someone only because you wanted to do that, You don't know him ICly");
  59. SendClientMessage(playerid, COLOR_LGREEN,"And you don't have a valid reason to kill him.");
  60. SendClientMessage(playerid, COLOR_RED,"---------------------------------------");
  61. }
  62. case 1: //MG
  63. {
  64. SendClientMessage(playerid,COLOR_RED,"-----------MG - MetaGaming-----------");
  65. SendClientMessage(playerid,COLOR_YELLOW,"Metagaming is mixing both OOC and IC informations together.");
  66. SendClientMessage(playerid,COLOR_YELLOW,"Or using informations that you gained OOCly to gain advantages ICly.");
  67. SendClientMessage(playerid,COLOR_LGREEN,"E.G : RPing that you know a player's name ICly only because you");
  68. SendClientMessage(playerid,COLOR_LGREEN,"Saw his name above his head on his nametag.");
  69. SendClientMessage(playerid, COLOR_RED,"-------------------------------------");
  70. }
  71. case 2: //PG
  72. {
  73. SendClientMessage(playerid,COLOR_RED,"-----------PG - PowerGaming-----------");
  74. SendClientMessage(playerid,COLOR_YELLOW,"Powergaming is roleplaying without giving someone any chances to resist [E.G 1].");
  75. SendClientMessage(playerid,COLOR_YELLOW,"Or RPing situations/actions that are NOT possible in real life [E.G 2].");
  76. SendClientMessage(playerid,COLOR_LGREEN,"E.G 1 : /me punches Harris on his nose, Then he fells down knocked out on the ground");
  77. SendClientMessage(playerid,COLOR_LGREEN,"^ Here you didn't use /do to ask if the operation succeed or failed");
  78. SendClientMessage(playerid,COLOR_LGREEN,"E.G 2 : /me uses his superpowers, Then flies away so no one can catch him. ");
  79. SendClientMessage(playerid, COLOR_RED,"-------------------------------------");
  80. }
  81. case 3: //RK
  82. {
  83. SendClientMessage(playerid,COLOR_RED,"-----------RK - RevengeKilling-----------");
  84. SendClientMessage(playerid,COLOR_YELLOW,"Revenge killing is basically killing someone because he killed you.");
  85. SendClientMessage(playerid,COLOR_LGREEN,"Tip : Remember that you lose the last 30 minutes of your memory when you die.");
  86. SendClientMessage(playerid, COLOR_RED,"----------------------------------------");
  87. }
  88. case 4: //SK
  89. {
  90. SendClientMessage(playerid,COLOR_RED,"-----------SK - SpawnKilling-----------");
  91. SendClientMessage(playerid,COLOR_YELLOW,"SpawnKilling is killing a player right after he joins\\gets out of hospital");
  92. SendClientMessage(playerid, COLOR_RED,"--------------------------------------");
  93. }
  94. case 5: //KoS
  95. {
  96. SendClientMessage(playerid,COLOR_RED,"-----------KoS - Killing on Sight-----------");
  97. SendClientMessage(playerid,COLOR_YELLOW,"Kill on Sight means that when you come up to someone and you kill him");
  98. SendClientMessage(playerid,COLOR_YELLOW,"without roleplaying before shooting him or without saying any word");
  99. SendClientMessage(playerid,COLOR_LGREEN,"Tip : RP with someone before you start shooting at him/her.");
  100. SendClientMessage(playerid, COLOR_RED,"-------------------------------------------");
  101. }
  102. case 6: //CS
  103. {
  104. SendClientMessage(playerid,COLOR_RED,"-----------CS - Crack Shooting-----------");
  105. SendClientMessage(playerid,COLOR_YELLOW,"Crack Shooting is using crouch(C button) to cancel the animation of shooting to get the ability to shoot faster.");
  106. SendClientMessage(playerid, COLOR_RED,"----------------------------------------");
  107. }
  108. case 7: //QS
  109. {
  110. SendClientMessage(playerid,COLOR_RED,"-----------QS - Quick Swapping-----------");
  111. SendClientMessage(playerid,COLOR_YELLOW,"Quick Swapping is quickly swapping your weapon");
  112. SendClientMessage(playerid,COLOR_YELLOW,"Thus making a gun go automatically reloaded without an animation");
  113. SendClientMessage(playerid, COLOR_RED,"----------------------------------------");
  114. }
  115. case 8: //[LEO] RT
  116. {
  117. SendClientMessage(playerid,COLOR_RED,"-----------RT - Rush Tazing-----------");
  118. SendClientMessage(playerid,COLOR_YELLOW,"Rushtazing is tazing a suspect who is shooting or aiming at you.");
  119. SendClientMessage(playerid,COLOR_YELLOW,"Simply, you won't risk your life doing it, in Real Life, you would respond with fire.");
  120. SendClientMessage(playerid, COLOR_RED,"-------------------------------------");
  121. }
  122. case 9: ///me Usage
  123. {
  124. SendClientMessage(playerid,COLOR_RED,"-----------/me Usage-----------");
  125. SendClientMessage(playerid,COLOR_YELLOW,"You can use /me to tell the others what are you doing.");
  126. SendClientMessage(playerid,COLOR_LGREEN,"E.G : /me reaches for his cigarettes pack from his right pocket.");
  127. SendClientMessage(playerid, COLOR_RED,"------------------------------");
  128. }
  129. case 10: ///do Usage
  130. {
  131. SendClientMessage(playerid,COLOR_RED,"-----------/do Usage-----------");
  132. SendClientMessage(playerid,COLOR_YELLOW,"You can use /do to describe something you've just Roleplayed. [E.G 1]");
  133. SendClientMessage(playerid,COLOR_YELLOW,"You can use it too to avoid PG (Forcing players into an RP situation). [E.G 2]");
  134. SendClientMessage(playerid,COLOR_LGREEN,"E.G 1 : /do the cigarettes pack color is red.");
  135. SendClientMessage(playerid,COLOR_LGREEN,"E.G 2 : /me attempts to punch Randall on his nose.");
  136. SendClientMessage(playerid,COLOR_LGREEN,"/do Success\\Fail ?");
  137. SendClientMessage(playerid, COLOR_RED,"-------------------------------");
  138. }
  139. }
  140. return 1;
  141. }
  142. return 0;
  143. }
  144.  
  145. public OnPlayerCommandText(playerid, cmdtext[])
  146. {
  147. if(!strcmp(cmdtext, "/help", true))
  148. {
  149. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "[Your Server Name] Basic RP Rules", "DM\nMG\nPG\nRK\nSK\nKoS\nCS\nQS\n[LEO] RT\n /me Usage\n /do Usage", "Select", "");
  150. return 1;
  151. }
  152. return 0;
  153. }
  154.  
  155. public OnFilterScriptExit()
  156. {
  157. return 1;
  158. }
  159. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement