Raised This Month: $ Target: $400
 0% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 08-05-2018 , 23:14   Re: [HELP] ADMIN + VIP Models
Reply With Quote #1

you can try this one..

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

#define VIP_LEVEL ADMIN_LEVEL_H              // edit vip flag here
#define ADMIN_LEVEL ADMIN_KICK           //edit admin flag here


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("ResetHUD""resetModel""b");
}

public 
plugin_precache() 
{
    
precache_model("models/player/admin_te/admin_te.mdl");        //for admin ts
    
precache_model("models/player/admin_ct/admin_ct.mdl");       //for admin ct
    
precache_model("models/player/vip_ts/vip_ts.mdl");     //for vip ts
    
precache_model("models/player/vip_ct/vip_ct.mdl");   //vor vip ct

}

public 
resetModel(idlevelcid
{
    new 
CsTeams:userTeam cs_get_user_team(id);

        if (
get_user_flags(id) & ADMIN_LEVEL
        { 
            switch( 
userTeam )
            {
                case 
CS_TEAM_Tcs_set_user_model(id"admin_te");   //edit 
                
case CS_TEAM_CTcs_set_user_model(id"admin_ct");   //edit 
            
}
        }

        else if( 
get_user_flags(id) & VIP_LEVEL )
        {

            switch( 
userTeam )
            {
                case 
CS_TEAM_Tcs_set_user_model(id"vip_ts");   //edit 
                
case CS_TEAM_CTcs_set_user_model(id"vip_ct");   //edit 
            
}
        }

        return 
0;

soumyadip77 is offline
Send a message via Skype™ to soumyadip77
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 12:19.


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