Raised This Month: $ Target: $400
 0% 

vip admin model for T too


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-05-2009 , 15:51   Re: vip admin model for T too
Reply With Quote #1

Since no one pointed it out:
Quote:
Originally Posted by Alucard^ View Post
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

#define VIP "models/player/vip/vip.mdl" 
#define FLAG "ADMIN_KICK" 

public plugin_init() { 
        
register_event("ResetHUD""resetModel""b"
        return 
PLUGIN_CONTINUE 


public 
plugin_precache() { 
        
precache_model(VIP

        return 
PLUGIN_CONTINUE 


public 
resetModel(idlevelcid) { 
    if (
get_user_flags(id) & FLAG)  
    { 
        
cs_set_user_model(idVIP
    } 
    else 
    { 
        
cs_reset_user_model(id
    } 
     
    return 
PLUGIN_CONTINUE

Should be:
PHP Code:
#define FLAG ADMIN_KICK 
without quotes.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 01:54.


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