Guest User

Rules by Radi

a guest
Apr 7th, 2012
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.13 KB | None | 0 0
  1. //Hello.
  2. //This FS uses simple ShowPlayerDialog
  3.  
  4.  
  5. //Simple Rules Command by Radi
  6. // /rules
  7. //I know everybody can make this, but i was bored, and decided to make it and release it for use by lazy people
  8.  
  9. //Credits go to:
  10. //Martin Sanchez, for telling me the \n tag.
  11. //NEVER remove this credits.
  12.  
  13.  
  14. #define FILTERSCRIPT
  15. #include <a_samp>
  16.  
  17. #if defined FILTERSCRIPT
  18.  
  19. public OnFilterScriptInit()
  20. {
  21.     print("\n--------------------------------------");
  22.     print("Simple Rules Command by Radi");
  23.     print("I know everybody can make this");
  24.     print("but i was bored, and decided to");
  25.     print("make it.");
  26.     print("--------------------------------------\n");
  27.     return 1;
  28. }
  29.  
  30. public OnFilterScriptExit()
  31. {
  32.     return 1;
  33. }
  34.  
  35. #else
  36.  
  37. main()
  38. {
  39.     print("\n----------------------------------");
  40.     print(" Blank Gamemode by your name here");
  41.     print("----------------------------------\n");
  42. }
  43.  
  44. #endif
  45.  
  46. //public OnGameModeInit()
  47. //{
  48.     // Don't use these lines if it's a filterscript
  49.     //SetGameModeText("Blank Script");
  50.     //AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  51.     //return 1;
  52. //}
  53.  
  54. public OnGameModeExit()
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerRequestClass(playerid, classid)
  60. {
  61.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  62.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  63.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  64.     return 1;
  65. }
  66.  
  67. public OnPlayerConnect(playerid)
  68. {
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerDisconnect(playerid, reason)
  73. {
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerSpawn(playerid)
  78. {
  79.     return 1;
  80. }
  81.  
  82. public OnPlayerDeath(playerid, killerid, reason)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnVehicleSpawn(vehicleid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnVehicleDeath(vehicleid, killerid)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerText(playerid, text[])
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerCommandText(playerid, cmdtext[])
  103. {
  104.     if (strcmp("/rules", cmdtext, true, 10) == 0)
  105.     {
  106.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rules", "\n Hello sir. I see you typed /rules. Now be kind enough to read them. \nNO hacks to be used in any way. \nNO flaming or abuse to other people. \nRespect all players and admins. \nDo not spam. \nNO Team Deatmatch. \nAsking for score, money or promotion is FORBIDDEN!","Close","");
  107.         return 1;
  108.     }
  109.     return 0;
  110. }
  111.  
  112. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnPlayerExitVehicle(playerid, vehicleid)
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerStateChange(playerid, newstate, oldstate)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnPlayerEnterCheckpoint(playerid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerLeaveCheckpoint(playerid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerEnterRaceCheckpoint(playerid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnPlayerLeaveRaceCheckpoint(playerid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnRconCommand(cmd[])
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnPlayerRequestSpawn(playerid)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnObjectMoved(objectid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerObjectMoved(playerid, objectid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerPickUpPickup(playerid, pickupid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnVehicleMod(playerid, vehicleid, componentid)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerSelectedMenuRow(playerid, row)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerExitedMenu(playerid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnRconLoginAttempt(ip[], password[], success)
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerUpdate(playerid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnPlayerStreamIn(playerid, forplayerid)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnPlayerStreamOut(playerid, forplayerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnVehicleStreamIn(vehicleid, forplayerid)
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnVehicleStreamOut(vehicleid, forplayerid)
  233. {
  234.     return 1;
  235. }
  236.  
  237. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  238. {
  239.     return 1;
  240. }
  241.  
  242. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  243. {
  244.     return 1;
  245. }
Advertisement
Add Comment
Please, Sign In to add comment