Raised This Month: $ Target: $400
 0% 

Custom models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iNf1k
Junior Member
Join Date: Jul 2009
Old 07-24-2009 , 20:50   Custom models
Reply With Quote #1

I have some problems with custom models...
I'm using this method to give custom model to a player:
Code:
register_event("ResetHUD", "spawn", "b");
...
public spawn(id)
{
new CsTeams:userTeam = cs_get_user_team(id);
            if(userTeam == CS_TEAM_T) 
                {
                    cs_set_user_model(id, "admin_te");
                }
                else if(userTeam == CS_TEAM_CT) 
                {
                    cs_set_user_model(id, "admin_ct");
                }
                else 
                {
                    cs_reset_user_model(id);
                }    
}
But, when I change team, I have previous model.
For ex, i'm playing CT, with model "admin_ct", changing team,
And still have model "admin_ct"
What is wrong?
Maybe you can correct my code?
Thanks!
iNf1k 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 18:20.


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