RevolutionLite

Basic Command Input

Nov 19th, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.60 KB | None | 0 0
  1. //Do NOT Remove The Credits!
  2.  
  3. //~~~~~~~~~~~~~~~~~~~Kyle Magix's Basic Command Input~~~~~~~~~~~~~~~~~~~
  4.  
  5. #define FILTERSCRIPT
  6. #include <a_samp>
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------------");
  13.     print(" ..........:<Input Text Here>:..........");
  14.     print("--------------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     //What ever you want to happen on exit!
  21.     return 1;
  22. }
  23.  
  24. public OnPlayerSpawn(playerid)
  25. {
  26.     SendClientMessage(playerid,0xFFFFFF,"Welcome to <SERVERNAME> use /help to get help!");
  27.     SendClientMessage(playerid,0x0033FF,"Type /<COMMANDNAME> <TO DO WHAT EVER YOU WANT>");
  28.     SendClientMessage(playerid,0x0033FF,"Type /teles to see more teleportation information");
  29.     SendClientMessage(playerid,0xFF0000,"Type /credits to see who made this useful script");
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerCommandText(playerid, cmdtext[])
  34. {
  35.     if (strcmp("/credits", cmdtext, true) == 0)
  36.     {
  37.     SendClientMessage(playerid,0x0033FF,"Script Made By: Kyle Magix (RevolutionLite)");
  38.     SendClientMessage(playerid,0x0033FF,"I welcome this to all servers so enjoy playing it!");
  39.     }
  40.     if (strcmp("/teles", cmdtext, true) == 0)
  41.     {
  42.     SendClientMessage(playerid,0x0033FF,"Teleportation List:");
  43.     SendClientMessage(playerid,0x0033FF,"<LIST TELEPORT OPTIONS HERE>"); //Use \n to add another line to the text
  44.     }
  45.     if (strcmp("/chelp", cmdtext, true) == 0)
  46.     {
  47.     SendClientMessage(playerid,0x0033FF,"Commands:");
  48.     SendClientMessage(playerid,0x0033FF,"<LIST COMMANDS ON DIFFERENT LINES>"); //Use \n to add another line
  49.     }
  50. }
  51.  
  52. #endif
Advertisement
Add Comment
Please, Sign In to add comment