Raised This Month: $ Target: $400
 0% 

Where is the probleme


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheGoldenKiller
New Member
Join Date: Jun 2018
Old 01-07-2019 , 16:55   Where is the probleme
Reply With Quote #1

Hi,
I don't know the problem where with the skin changer plugin when i enter to the server no model has been changed , so please help guys



PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        
register_plugin("AMX Admin Model""1.1.1""whitemike")
       
register_event("ResetHUD""resetModel""b")
}

public 
plugin_precache()
{
        
precache_model("models/player/admin_c/admin_c.mdl")
        
precache_model("models/player/admin_t/admin_t.mdl")
        
precache_model("models/player/founder_c/founder_c.mdl")
        
precache_model("models/player/founder_t/founder_t.mdl")
        
precache_model("models/player/momber_c/momber_c.mdl")
        
precache_model("models/player/momber_t/momber_t.mdl")
        
precache_model("models/player/elcadmin_c/elcadmin_c.mdl")
        
precache_model("models/player/elcadmin_t/elcadmin_t.mdl")
        
precache_model("models/player/header_c/header_c.mdl")
        
precache_model("models/player/header_t/header_t.mdl")
        
}

public 
resetModel(id)
{
        if(
cs_get_user_team(id)== CS_TEAM_CT)
            {
                if(
get_user_flags(id) == ADMIN_RCON)
                    {
                        
cs_set_user_model(id"founder_c")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_D)
                    {
                        
cs_set_user_model(id"momber_c")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_C)
                    {
                        
cs_set_user_model(id"header_c")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_B)
                    {
                        
cs_set_user_model(id"elcadmin_c")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_A)
                    {
                        
cs_set_user_model(id"admin_c")
                    }
            }
            
        if(
cs_get_user_team(id) == CS_TEAM_T)
            {
                if(
get_user_flags(id) == ADMIN_RCON)
                    {
                        
cs_set_user_model(id"founder_t")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_D)
                    {
                        
cs_set_user_model(id"momber_t")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_C)
                    {
                        
cs_set_user_model(id"header_t")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_B)
                    {
                        
cs_set_user_model(id"elcadmin_t")
                    }
                else if(
get_user_flags(id) == ADMIN_LEVEL_A)
                    {
                        
cs_set_user_model(id"admin_t")
                    }
            }

TheGoldenKiller 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 07:38.


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