Advertisement
Guest User

Rulescmd(2) By : ..Frelan..

a guest
May 25th, 2016
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Rulescmd By : Theseman.
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. #define COLOR_GREEN 0x15FF00AA
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" Blank Filterscript by your name here");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26.     print("\n----------------------------------");
  27.     print(" Rules Command By : TheseMan.");
  28.     print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35.     return 1;
  36. }
  37.  
  38. public OnGameModeExit()
  39. {
  40.     return 1;
  41. }
  42.  
  43. public OnPlayerRequestClass(playerid, classid)
  44. {
  45.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  46.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  47.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53.         new string [944];
  54.         new giveid;
  55.         strcat(string, "{15FF00}1.{FFFFFF}Your Text\n");
  56.         strcat(string, "{15FF00}2.{FFFFFF}Your Text\n");
  57.         strcat(string, "{15FF00}3.{FFFFFF}Your Text\n");
  58.         strcat(string, "{15FF00}4. {FFFFFF}Your Text\n");
  59.         strcat(string, "{15FF00}5. {FFFFFF}Your Text\n");
  60.         strcat(string, "{15FF00}6.{FFFFFF}Your Text\n");
  61.         strcat(string, "{15FF00}7.{FFFFFF}Your Text\n");
  62.         strcat(string, "{15FF00}8.{FFFFFF}Your Text\n");
  63.         strcat(string, "{15FF00}9.{FFFFFF}Your Text\n");
  64.         strcat(string, "{15FF00}10.{FFFFFF}Your Text\n");
  65.         strcat(string, "{15FF00}11.{FFFFFF}Your Text\n");
  66.         strcat(string, "{15FF00}12.{FFFFFF}Your Text\n");
  67.         strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n");
  68.         strcat(string, "\n\n");
  69.         ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", "");
  70.         return 1;
  71. }
  72.  
  73. public OnPlayerDisconnect(playerid, reason)
  74. {
  75.     return 1;
  76. }
  77.  
  78. public OnPlayerSpawn(playerid)
  79. {
  80.     return 1;
  81. }
  82.  
  83. public OnPlayerDeath(playerid, killerid, reason)
  84. {
  85.     return 1;
  86. }
  87.  
  88. public OnVehicleSpawn(vehicleid)
  89. {
  90.     return 1;
  91. }
  92.  
  93. public OnVehicleDeath(vehicleid, killerid)
  94. {
  95.     return 1;
  96. }
  97.  
  98. public OnPlayerText(playerid, text[])
  99. {
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerCommandText(playerid, cmdtext[])
  104. {
  105.     if (strcmp("/rules", cmdtext, true, 10) == 0)
  106.     {
  107.         new string [944];
  108.         new giveid;
  109.         strcat(string, "{15FF00}1.{FFFFFF}Your Text\n");
  110.         strcat(string, "{15FF00}2.{FFFFFF}Your Text\n");
  111.         strcat(string, "{15FF00}3.{FFFFFF}Your Text\n");
  112.         strcat(string, "{15FF00}4. {FFFFFF}Your Text\n");
  113.         strcat(string, "{15FF00}5. {FFFFFF}Your Text\n");
  114.         strcat(string, "{15FF00}6.{FFFFFF}Your Text\n");
  115.         strcat(string, "{15FF00}7.{FFFFFF}Your Text\n");
  116.         strcat(string, "{15FF00}8.{FFFFFF}Your Text\n");
  117.         strcat(string, "{15FF00}9.{FFFFFF}Your Text\n");
  118.         strcat(string, "{15FF00}10.{FFFFFF}Your Text\n");
  119.         strcat(string, "{15FF00}11.{FFFFFF}Your Text\n");
  120.         strcat(string, "{15FF00}12.{FFFFFF}Your Text\n");
  121.         strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n");
  122.         strcat(string, "\n\n");
  123.         ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", "");
  124.         return 1;
  125.     }
  126.     return 0;
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement