Raised This Month: $ Target: $400
 0% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-06-2018 , 11:35   Re: [HELP] ADMIN + VIP Models
Reply With Quote #1

Quote:
Originally Posted by Shadowless View Post
now i got other problem
i have both access on server (ADMIN_LEVEL_C and ADMIN_KICK) (flags "c" and "o")
and i`m with model of VIP, i want to be with model higher access ADMIN_KICK with model ADMIN


PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN  "ADMIN + VIP Model"
#define VERSION "1.0"
#define AUTHOR  "Author"
#define VIP_MODEL ADMIN_LEVEL_C
#define ADMIN_MODEL ADMIN_KICK

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("ResetHUD""resetModel""b");
}

public 
plugin_precache() 
{
    
precache_model("models/player/admin_te/admin_te.mdl");
    
precache_model("models/player/admin_ct/admin_ct.mdl");
    
precache_model("models/player/vip_te/vip_te.mdl");
    
precache_model("models/player/vip_ct/vip_ct.mdl");
}

public 
resetModel(idlevelcid
{
    new 
CsTeams:userTeam cs_get_user_team(id);
    if(
get_user_flags(id) & ADMIN_MODEL && !is_user_bot(id))
    {
        switch( 
userTeam )
        {
            case 
CS_TEAM_Tcs_set_user_model(id"admin_te");
                case 
CS_TEAM_CTcs_set_user_model(id"admin_ct");
            }
    }
    if(
get_user_flags(id) & VIP_MODEL && !is_user_bot(id))
    {
        switch( 
userTeam )
        {
            case 
CS_TEAM_Tcs_set_user_model(id"vip_te");
                case 
CS_TEAM_CTcs_set_user_model(id"vip_ct");
            }
    }    
    return 
0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 
Code:
if(get_user_flags(id) & ADMIN_MODEL && !is_user_bot(id)) 
    { 
        switch( userTeam ) 
        { 
            case CS_TEAM_T: cs_set_user_model(id, "admin_te"); 
                case CS_TEAM_CT: cs_set_user_model(id, "admin_ct"); 
            } 
    } 
    else if(get_user_flags(id) & VIP_MODEL && !is_user_bot(id)) 
    { 
        switch( userTeam ) 
        { 
            case CS_TEAM_T: cs_set_user_model(id, "vip_te"); 
                case CS_TEAM_CT: cs_set_user_model(id, "vip_ct"); 
            } 
    }
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
Old 08-06-2018, 11:39
Shadowless
This message has been deleted by Shadowless.
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-06-2018 , 11:40   Re: [HELP] ADMIN + VIP Models
Reply With Quote #3

Quote:
Originally Posted by Shadowless View Post
?
Check carefully what i changed in code.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
Old 08-06-2018, 11:58
Shadowless
This message has been deleted by Shadowless.
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