SHARE
TWEET

Untitled

a guest Mar 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "nacknic"
  9.  
  10.  
  11. public plugin_init() {
  12.     register_plugin(PLUGIN, VERSION, AUTHOR)
  13.     register_clcmd("say", "NacknicCommands") // register "say" to be command, and declare public function NacknicCommands
  14. }
  15.  
  16. public NacknicCommands(id) {
  17.     static args[51],command[11], integers[21], n
  18.     read_args(args, charsmax(args)) // read all arguments
  19.     remove_quotes(args) // remove quotes from string
  20.     strbreak(args, command, charsmax(command), args, charsmax(args)) // separate first arg
  21.     if(equali(command, "!command")) // check if the first word was !command
  22.     {
  23.         while((contain(args, " ") > -1)) // loop keep called if the string not empty
  24.              {
  25.             strbreak(args, integers, charsmax(integers), args, charsmax(args)) // separate first arg
  26.             if(integers = "^t") // check ifarge its spcae
  27.             {
  28.                 continue // if arg is space skip this current loop
  29.             }
  30.             else if(is_str_num(integers)) // if arg is string base on integer
  31.             {
  32.                      client_print(id, print_chat, "%s", integers)
  33.             }
  34.         }
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top