Raised This Month: $ Target: $400
 0% 

vip admin model for T too


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 02-05-2009 , 01:29   Re: vip admin model for T too
Reply With Quote #1

I think you can set only VIP model and armour, but scoreboard...

Quote:
PHP Code:
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

must be:
PHP Code:
public resetModel(id) { 
    if (
get_user_flags(id) & FLAG)  
    { 
        
cs_set_user_model(idVIP
    } 
    else 
    { 
        
cs_reset_user_model(id
    } 
     
    return 
PLUGIN_CONTINUE

TheRadiance is offline
Send a message via ICQ to TheRadiance
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