Raised This Month: $ Target: $400
 0% 

Player model changes.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
egbertjan
Senior Member
Join Date: Mar 2007
Location: The Netherlands
Old 04-05-2011 , 16:00   Re: Player model changes.
Reply With Quote #6

It's quite some big script so I will just post the essential things:
PHP Code:
new ASSASSINT[]  = "models/player/AsassinT/AssassinT.mdl"
new ASSASSINCT[]  = "models/player/AsassinCT/AssassinCT.mdl" 
PHP Code:
public plugin_precache()

    
precache_model("ASSASSINCT")
    
precache_model("ASSASSINT")

PHP Code:
//more script parts here. but would make it look messy so I will just post 
//the model part here

if (is_user_connected(id))
    {
        if(
player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_CT
        {
          
cs_set_user_model(id"ASSASSINCT")
        }

        if(
player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_T
        {
          
cs_set_user_model(id"ASSASSINT")
        } 
     } 
egbertjan 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 19:45.


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