Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cstrike>
- new g_cvar;
- public plugin_init() {
- register_plugin("Spray Delay Fixer","0.0.1","Hyuna");
- register_clcmd("say /fixspray", "cmdfix");
- g_cvar = get_cvar_pointer("decalfrequency");
- }
- public cmdfix(id){
- if (cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id))
- {
- set_pcvar_num(g_cvar,3);
- client_print(id,print_chat,"[AMXX] You set the Spray Delay to 3 seconds!");
- return;
- }
- client_print(id,print_chat,"[AMXX] Only admin and guards can fix the Spray Delay!");
- return;
- }
- stock is_user_admin(index)
- return (get_user_flags(index) & ADMIN_ADMIN);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement