Advertisement
Hyuna

Spray Delay Fixer

Nov 22nd, 2012
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. new g_cvar;
  5.  
  6. public plugin_init() {
  7.     register_plugin("Spray Delay Fixer","0.0.1","Hyuna");
  8.     register_clcmd("say /fixspray", "cmdfix");
  9.  
  10.     g_cvar = get_cvar_pointer("decalfrequency");
  11. }
  12.  
  13. public cmdfix(id){
  14.     if (cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id))
  15.     {
  16.         set_pcvar_num(g_cvar,3);
  17.         client_print(id,print_chat,"[AMXX] You set the Spray Delay to 3 seconds!");
  18.         return;
  19.     }
  20.  
  21.     client_print(id,print_chat,"[AMXX] Only admin and guards can fix the Spray Delay!");
  22.     return;
  23. }
  24.  
  25. stock is_user_admin(index)
  26.     return (get_user_flags(index) & ADMIN_ADMIN);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement