Raised This Month: $ Target: $400
 0% 

Solved Setting player models.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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 02:43.


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