Raised This Month: $ Target: $400
 0% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowless
Member
Join Date: May 2018
Old 01-23-2019 , 14:59   [DELETED]
Reply With Quote #1

---

Last edited by Shadowless; 05-19-2019 at 05:52.
Shadowless is offline
Send a message via ICQ to Shadowless
Old 01-23-2019, 15:10
iceeedr
This message has been deleted by iceeedr. Reason: wrong post
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 01-23-2019 , 16:20   Re: VIP ADMIN OWNER models
Reply With Quote #2

well, what do you understand from 'not found'?
put the models in right place
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Old 01-23-2019, 16:45
Shadowless
This message has been deleted by Shadowless.
Old 01-23-2019, 16:48
Shadowless
This message has been deleted by Shadowless.
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-23-2019 , 17:06   Re: VIP ADMIN OWNER models
Reply With Quote #3

Is this screen of your pc or server?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-23-2019 , 18:31   Re: VIP ADMIN OWNER models
Reply With Quote #4

as far as i know, that's not the way you set models using cs_set_user_model().

just have a look at this, i had troubles with it aswel years ago.

https://forums.alliedmods.net/showthread.php?t=191320
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-23-2019 , 19:27   Re: VIP ADMIN OWNER models
Reply With Quote #5

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

enum _:ModelsInfo
{
    
Flag,
    
CTModel[32],
    
TModel[32]
}

new 
bool:bMatch[33]

new const 
g_eModels[][ModelsInfo] =
{
    { 
ADMIN_LEVEL_G"ADMINISTRADOR_CT""ADMINISTRADOR_TR" },
    { 
ADMIN_LEVEL_F"Girl_CT""Girl_TR" },
    { 
ADMIN_LEVEL_H"Vip_CT""Vip_TR" },
}

new 
bool:g_bHasCustomSkin[33]

public 
plugin_init()
{
    
register_plugin("Multiple Player Models""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
plugin_precache()
{
    for(new 
isizeof(g_eModels); i++)
    {
        
precache_player_model(g_eModels[i][CTModel])
        
precache_player_model(g_eModels[i][TModel])
    }
}


public 
OnPlayerSpawn(id)
{
    if(
is_user_alive(id))
    {
        for(new 
iFlags get_user_flags(id), isizeof(g_eModels); i++)
        {
            if(
iFlags g_eModels[i][Flag])
            {
                switch(
cs_get_user_team(id))
                {
                    case 
CS_TEAM_CTset_model(idg_eModels[i][CTModel])
                    case 
CS_TEAM_Tset_model(idg_eModels[i][TModel])
                }
                
bMatch[id] = true
                
break
            }
        }

        if(!
bMatch[id] && g_bHasCustomSkin[id])
        {
            
g_bHasCustomSkin[id] = false
            cs_reset_user_model
(id)
        }
    }
}

set_model(const id, const szModel[])
{
    
cs_set_user_model(idszModel)
    
g_bHasCustomSkin[id] = true
}

precache_player_model(szModel[])
{
    new 
szFile[128]
    
formatex(szFilecharsmax(szFile), "models/player/%s/%s.mdl"szModelszModel)
    
precache_model(szFile)
    
replace(szFilecharsmax(szFile), ".mdl""T.mdl")

    if(
file_exists(szFile))
        
precache_model(szFile)

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 01-24-2019 at 08:23. Reason: Edit for author name
iceeedr is offline
Send a message via Skype™ to iceeedr
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-24-2019 , 08:13   Re: VIP ADMIN OWNER models
Reply With Quote #6

@iceeedr removing the original author name isn't a very moral thing to do.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-24-2019 , 08:20   Re: VIP ADMIN OWNER models
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
@iceeedr removing the original author name isn't a very moral thing to do.
I know it's yours, incidentally I got it from our private conversation, but at the time of copying everything did not come, I was too lazy to get your name so I put alliedmodders and any name in the plug. No intention of doing otherwise, relaxes.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
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 07:34.


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