Raised This Month: $51 Target: $400
 12% 

Solved Setting player models.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-16-2020 , 15:07   Setting player models.
Reply With Quote #1

So i've been trying to set a player model for the entire 2 hours and i've done research and tried everything such as, cs_set_user_model() & engfunc() but it doesn't seem to work. Allthough, i've tried selecting different terrorist classes but the model seems to stay the same. Are there any server commands that can block my plugin from showing the model?

my settings:
cl_minmodels 1
cl_min_ct 2
cl_min_t 1

my current code
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "VIP Model: Terrorist"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new const szModel[] = "models/player/female_t/female_t.mdl";

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
RegisterHam(Ham_Spawn"player""PostPlayerSpawn"1);
}

public 
plugin_precache()
{
    
precache_model(szModel);
}

public 
PostPlayerSpawn(id)
{
    if(
is_user_alive(id)) 
    {
        
cs_set_user_model(id"female_t");
    }

__________________

Last edited by Napoleon_be; 01-16-2020 at 15:40.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-16-2020 , 15:15   Re: Setting player models.
Reply With Quote #2

Quote:
cl_minmodels 1
0

PS: the other 2 cvars don't even exist.
__________________

Last edited by OciXCrom; 01-16-2020 at 15:15.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-16-2020 , 15:28   Re: Setting player models.
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
0

PS: the other 2 cvars don't even exist.
they came up in my game console, that's why lol
Thanks, cl_minmodels 0 worked, stupid me
__________________

Last edited by Napoleon_be; 01-16-2020 at 15:30.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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:52.


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