Advertisement
Guest User

C_DIALOG

a guest
Mar 3rd, 2012
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                                                                 /*
  2. ++++++++++================>C_DIALOG[A SIMPLE COMMAND FILTERSCRIPT FOR NEW USERS AND n00b FRIENDLY]<====================++++++++++++
  3.                                                           --------------------------->BY commander_abhi owner of TRIPLE-xXx-GAMEING
  4.                                                                                 ------------------>new updates of this FilterScript will be realeased currently
  5.                                                                                 */
  6.  
  7. #include <a_samp>
  8. #define DIALOG_HELP 1
  9. #define DIALOG_CREDITS 2
  10. #define DIALOG_COMMANDS 3
  11. #define DIALOG_RULES 4
  12. #if defined FILTERSCRIPT
  13.  
  14. public OnFilterScriptInit()
  15. {
  16.     print("\n--------------------------------------");
  17.     print(" DIALOG COMMADS by commander_abhi");
  18.     print("   ---->PLZ WAIT LOADING.......");
  19.     print("         ---->LOADING.......");
  20.     print("             ---->LOADING.......");
  21.     print(" DIALOG COMMANDS HAVE BEEN SUCCESFULLY LOADED");
  22.     print("--------------------------------------\n");
  23.     return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28.     return 1;
  29. }
  30. #endif
  31.  
  32. public OnPlayerCommandText(playerid, cmdtext[])
  33. {
  34.     if (strcmp("/help", cmdtext, true, 10) == 0)
  35.     {
  36.         ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"SERVER HELP!","USE /cmds:for commands.\n NEED ANY HELP INGAME?\n JSUT SIMPLEY PM AN ADMIN FOR IT OR A HELPER\n  etc.","OK","BACK");
  37.         return 1;
  38.     }
  39.     if(!strcmp(cmdtext, "/cmds",true) || !strcmp(cmdtext, "/commands",true))
  40.     {
  41.         ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"SERVER COMMANDS!","THESE ARE ALL THE SERVER COMMANDS PLZ DONT SPAN IT OR IT WILL RESULT IN PUNISMENT\n USE /help:for help in game\n USE /rule:for server rules. \n USE /animlist:for a list of animations.\n USE /admins:for the list of current admins\n USE /credits:for credits of the server\n  etc.","OK","BACK");
  42.         return 1;
  43.     }
  44.     if(strcmp("/credits",cmdtext,true, 10) == 0)
  45.     {
  46.         ShowPlayerDialog(playerid,DIALOG_CREDITS,DIALOG_STYLE_MSGBOX,"SERVER CREDITS!","THESE ARE THE REAL CREDITS TO THE PEOPLE HELPED IN DEVLOPING THE SERVER\nSERVER OWNERS:[YOUR NAME OR THE SERVER OWNERS Name AT LINE 44]\nSERVER SCRIPTERS:[SERVER SCRIPTERS AT 44]\nSERVER MAPPERS:[SERVER MAPPERS AT 44]\n AND commander_abhi and TRIPLE-xXx-GAMEING FOR DIALOG FILTER SCRIPT \n AND ALL THE GUYS OF SA-MP.com etc.","OK","BACK");
  47.         return 1;
  48.     }
  49.     if(strcmp("/rules", cmdtext,true, 10) ==0)
  50.     {
  51.         ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"SERVER RULES!","SERVER RULES! PLZ FOLLOW THEM.\n 1.No Hacks/Cheats \n 2. GTA:SA Mods not allowed \n 3.No CarRam Heli-Kill or DriveBY \n 4.No teamkilling \n 5.Respect all admins. \n 6.Dont abuse any command or commands. \n 7. dont /q to avoid Death \n 8. Dont GO AFK! to avoid ANYTHING. \n 9.Dont Insult Admins. \n 10. No Racism [Niggah is allowed] \n 11. NO Passenger abuse. \n and etc. anyways do what admin asks","OK","BACK");
  52.         return 1;
  53.     }
  54.     return 0;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement