MegastoRM

Untitled

Jan 16th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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 "author"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_concmd("cod_setclass", "cmd_setclass", ADMIN_RCON, "<nick> <klasa>");
  14. // Add your code here...
  15. }
  16.  
  17. public cmd_setlvl(id, level, cid)
  18. {
  19. if(!cmd_access(id,level,cid,3))
  20. return PLUGIN_HANDLED;
  21. new arg1[33];
  22. new arg2[6];
  23. read_argv(1, arg1, 32);
  24. read_argv(2, arg2, 5);
  25. new player = cmd_target(id, arg1);
  26. if(!is_user_connected(player))
  27. return PLUGIN_HANDLED;
  28.  
  29. klasa_igraca[player] = arg2
  30. return PLUGIN_HANDLED;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment