Raised This Month: $ Target: $400
 0% 

Only admin can use plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zwfgdlc
Senior Member
Join Date: May 2006
Old 08-07-2008 , 07:13   Re: Only admin can use plugin
Reply With Quote #9

Code:
public fwd_touch(blocker, id) {     new flags = get_user_flags(id, 0);     if(!(flags & ADMIN_LEVEL_H))     if(!is_user_alive(blocker) || !get_pcvar_num(cvar_antiblock))         return FMRES_IGNORED         static button[2]     button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)         if(button[0] & IN_USE || button[1] & IN_USE)     {         static CsTeams:team[2]         team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)             if(team[0] != team[1])             return FMRES_IGNORED                 set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)                 static Float:gametime; gametime = get_gametime()         g_lasttimetouched[id] = gametime, g_lasttimetouched[blocker] = gametime     }     return FMRES_IGNORED }
change to
Code:
public fwd_touch(blocker, id) {     if(!(get_user_flags(id) & ADMIN_LEVEL_H)) return FMRES_IGNORED;     if(!is_user_alive(blocker) || !get_pcvar_num(cvar_antiblock))         return FMRES_IGNORED         static button[2]     button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)         if(button[0] & IN_USE || button[1] & IN_USE)     {         static CsTeams:team[2]         team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)             if(team[0] != team[1])             return FMRES_IGNORED                 set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)                 static Float:gametime; gametime = get_gametime()         g_lasttimetouched[id] = gametime, g_lasttimetouched[blocker] = gametime     }     return FMRES_IGNORED }
zwfgdlc is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode