Advertisement
Guest User

allarw

a guest
Oct 8th, 2009
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. #include <a_samp>
  2. #define COLOR_YELLOW 0xDABB3EAA
  3. #define COLOR_GREEN 0x9EC73DAA
  4. #define COLOR_GRAD6 0xF0F0F0FF
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" Roleplay Guide - Loaded");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12. public OnFilterScriptExit()
  13. {
  14. return 1;
  15. }
  16. main()
  17. {
  18. print("\n----------------------------------");
  19. print(" Roleplay Guide- Made By Tutrix ");
  20. print("----------------------------------\n");
  21. }
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24. new cmd[128], idx;
  25. cmd = strtok(cmdtext, idx);
  26. //----------------------------------[Out Of Character]----------------------------------
  27. if(strcmp(cmd, "/outchar", true) == 0)
  28. {
  29. SendClientMessage(playerid, COLOR_YELLOW, "Out Of Character");
  30. SendClientMessage(playerid, COLOR_GREEN, "Out Of Character shortened OOC refers to the world of players.");
  31. SendClientMessage(playerid, COLOR_GREEN, "Indicates something said or done by the person playing a character, not the character itself.");
  32. return 1;
  33. }
  34. //----------------------------------[InCharacter]----------------------------------
  35. if(strcmp(cmd, "/inchar", true) == 0)
  36. {
  37. SendClientMessage(playerid, COLOR_YELLOW, "In Character");
  38. SendClientMessage(playerid, COLOR_GREEN, "In Character shortened IC refers to the world of characters. Basically whenever you are roleplaying you are 'In Character'");
  39. return 1;
  40. }
  41. //----------------------------------[oocterm]----------------------------------
  42. if(strcmp(cmd, "/oocterm", true) == 0)
  43. {
  44. SendClientMessage(playerid, COLOR_YELLOW, "OOC Term");
  45. SendClientMessage(playerid, COLOR_GREEN, "OOC-Terms are terms like lol, w8, omg, u, ur, lmao, rofl, lmfao, etc...");
  46. return 1;
  47. }
  48. //----------------------------------[rpgcredits]----------------------------------
  49. if(strcmp(cmd, "/rpgcredits", true) == 0)
  50. {
  51. SendClientMessage(playerid, COLOR_YELLOW, "Roleplay Guide Credits");
  52. SendClientMessage(playerid, COLOR_GREEN, "The guide is made by Tutrix");
  53. return 1;
  54. }
  55. //----------------------------------[deathmatch]----------------------------------
  56. if(strcmp(cmd, "/deathmatch", true) == 0)
  57. {
  58. SendClientMessage(playerid, COLOR_YELLOW, "Deathmatch");
  59. SendClientMessage(playerid, COLOR_GREEN, "You kill someone with out a good ic reason, or you dont have a reason at all");
  60. return 1;
  61. }
  62. //----------------------------------[revengekill]----------------------------------
  63. if(strcmp(cmd, "/revengekill", true) == 0)
  64. {
  65. SendClientMessage(playerid, COLOR_YELLOW, "Revenge Kill");
  66. SendClientMessage(playerid, COLOR_GREEN, "Someone kills you, and you go back and kills the same person");
  67. return 1;
  68. }
  69. //----------------------------------[powergaming]----------------------------------
  70. if(strcmp(cmd, "/powergaming", true) == 0)
  71. {
  72. SendClientMessage(playerid, COLOR_YELLOW, "PowerGaming");
  73. SendClientMessage(playerid, COLOR_GREEN, "Having Un-Natural powers IC");
  74. SendClientMessage(playerid, COLOR_GREEN, "Example:Jumping from a high place, without hurting your self");
  75. return 1;
  76. }
  77. //----------------------------------[metagaming]-----------------------------------
  78. if(strcmp(cmd, "/metagaming", true) == 0)
  79. {
  80. SendClientMessage(playerid, COLOR_YELLOW, "MetaGaming");
  81. SendClientMessage(playerid, COLOR_GREEN, "Using OOC knowledge IC");
  82. SendClientMessage(playerid, COLOR_GREEN, "Example:Reading a players nametag and says the name IC");
  83. return 1;
  84. }
  85. //----------------------------------[cardm]-----------------------------------
  86. if(strcmp(cmd, "/cardm", true) == 0)
  87. {
  88. SendClientMessage(playerid, COLOR_YELLOW, "Car Deathmatch");
  89. SendClientMessage(playerid, COLOR_GREEN, "Car Deathmatching is driving over someone with your car for no In Character reason");
  90. return 1;
  91. }
  92. //----------------------------------[Character Kill]-----------------------------------
  93. if(strcmp(cmd, "/charkill", true) == 0)
  94. {
  95. SendClientMessage(playerid, COLOR_YELLOW, "Character Kill");
  96. SendClientMessage(playerid, COLOR_GREEN, "Character Kill shortened CK is killing someone's character permanently.");
  97. SendClientMessage(playerid, COLOR_GREEN, "When your character gets Character Killed you can't play with that character anymore");
  98. SendClientMessage(playerid, COLOR_GREEN, "you will have to make a new character to continue playing on the server.");
  99. return 1;
  100. }
  101. //----------------------------------[Heli Kill]-----------------------------------
  102. if(strcmp(cmd, "/helikill", true) == 0)
  103. {
  104. SendClientMessage(playerid, COLOR_YELLOW, "Helicopter Kill");
  105. SendClientMessage(playerid, COLOR_GREEN, "Helikill is the act of killing someone with helicopter blades.");
  106. return 1;
  107. }
  108. //----------------------------------[Bunny Hop]-----------------------------------
  109. if(strcmp(cmd, "/bhop", true) == 0)
  110. {
  111. SendClientMessage(playerid, COLOR_YELLOW, "BunnyHop");
  112. SendClientMessage(playerid, COLOR_GREEN, "Bunny hopping or bunny jumping is the act of jumping repeatedly by struming the jump key. This is used to travel faster on-foot.");
  113. return 1;
  114. }
  115. //----------------------------------[Bunny Hop]-----------------------------------
  116. if(strcmp(cmd, "/roleplay", true) == 0)
  117. {
  118. SendClientMessage(playerid, COLOR_YELLOW, "Roleplay");
  119. SendClientMessage(playerid, COLOR_GREEN, "Roleplaying shortened RP means taking on the role of a character and acting it out in-game through emotes.");
  120. SendClientMessage(playerid, COLOR_GREEN, "It's pretty easy to learn, mostly you just act like you would in real life.");
  121. return 1;
  122. }
  123. //----------------------------------[roleplayguide]--------------------------------
  124. if(strcmp(cmd, "/roleplayguide", true) == 0)
  125. {
  126. SendClientMessage(playerid, COLOR_GREEN, "--Roleplay Guide--");
  127. SendClientMessage(playerid, COLOR_GRAD6, "USAGE: /metagaming /powergaming /deathmatch /revengekill /rpgcredits /inchar /outchar /oocterm");
  128. SendClientMessage(playerid, COLOR_GRAD6, "USAGE: /cardm /charkill /helikill /bhop /roleplay");
  129. SendClientMessage(playerid, COLOR_GREEN, "--Roleplay Guide--");
  130. return 1;
  131. }
  132. return 0;
  133. }
  134. strtok(const string[], &index)
  135. {
  136. new length = strlen(string);
  137. while ((index < length) && (string[index] <= ' '))
  138. {
  139. index++;
  140. }
  141.  
  142. new offset = index;
  143. new result[20];
  144. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  145. {
  146. result[index - offset] = string[index];
  147. index++;
  148. }
  149. result[index - offset] = EOS;
  150. return result;
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement