Raised This Month: $ Target: $400
 0% 

Help on Team Models plugin [CS 1.6]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
chaotix911
Junior Member
Join Date: Jun 2010
Old 06-11-2011 , 05:11   Re: Help on Team Models plugin [CS 1.6]
Reply With Quote #6

Quote:
Originally Posted by Dr7sTyLe View Post
PHP Code:
#include <amxmodx> 
#include <cstrike> 

public plugin_init() {    
    
register_plugin("Halo Skins""0.5""Front Line")    
    
register_event("ResetHUD""resetModel""b")   
    
register_logevent("roundstart"2"1=Round_Start")

    return 
PLUGIN_CONTINUE    
}    
public 
roundstart(id)
{
    new 
CsTeams:userTeam cs_get_user_team(id)   
    if (
userTeam == CS_TEAM_T) {   
        
cs_set_user_model(id,"hns_t_mm1")   

    }   
    else if(
userTeam == CS_TEAM_CT) {   
        
cs_set_user_model(id,"vip")  
          
    }   
    else {   
        
cs_reset_user_model(id)   
               
    }   
    return 
PLUGIN_CONTINUE 
   
}
    
public 
plugin_precache() {    
    
precache_model("models/player/hns_t_mm1/hns_t_mm1.mdl")   
    
precache_model("models/player/vip/vip.mdl")     

      
      
    return 
PLUGIN_CONTINUE    
}    

public 
resetModel(id)    
    {   
      
    new 
CsTeams:userTeam cs_get_user_team(id)   
    if (
userTeam == CS_TEAM_T) {   
        
cs_set_user_model(id,"hns_t_mm1")   

    }   
    else if(
userTeam == CS_TEAM_CT) {   
        
cs_set_user_model(id,"vip")  
          
    }   
    else {   
        
cs_reset_user_model(id)   
               
    }   
    return 
PLUGIN_CONTINUE    
}   
public 
client_putinserver(id
    {   
      
    new 
CsTeams:userTeam cs_get_user_team(id)   
    if (
userTeam == CS_TEAM_T) {   
        
cs_set_user_model(id,"hns_t_mm1")   

    }   
    else if(
userTeam == CS_TEAM_CT) {   
        
cs_set_user_model(id,"vip")  
          
    }   
    else {   
        
cs_reset_user_model(id)   
               
    }   
    return 
PLUGIN_CONTINUE    

thank you! ill try that one!

Edit: Still won't work! I just realized you just repeated most of the stuff but thanks for the effort!

Last edited by chaotix911; 06-11-2011 at 05:15.
chaotix911 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 23:26.


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