Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. public plugin_init()
  5. {
  6. register_plugin("Knife i Smoke", "1.0", "->UrOS<-")
  7. register_clcmd("amx_round", "funkcija", ADMIN_KICK, "amx_round smoke ili amx_round knife")
  8. }
  9.  
  10. public funkcija(id, level, cid)
  11. {
  12. if(!cmd_access(id, level, cid, 2))
  13. return PLUGIN_HANDLED
  14.  
  15. new argument[10]
  16.  
  17. read_argv(1, argument, 9)
  18. if(equali(argument, "smoke"))
  19. server_cmd("exec smoke.cfg")
  20.  
  21. else if(equali(argument, "knife"))
  22. server_cmd("exec knife.cfg")
  23. return PLUGIN_HANDLED
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement