Raised This Month: $ Target: $400
 0% 

Solved cs_set_user_model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-15-2021 , 13:21   cs_set_user_model
Reply With Quote #1

Hello! I have this code

PHP Code:
ublic plugin_init(){
    
register_logevent("taskdo"2"1=Round_Start"
}

public 
taskdo(id){
    
    
set_task(1.0"skincheck")
    
}

public 
skincheck(id){
    
    if(
is_user_alive(id)){
        
        new 
iSkin[32]
        
        
cs_get_user_model(idiSkincharsmax(iSkin))
        
        if (
equaliiSkin"fbi" ) || equali iSkin"sias" )){
            
            if ( 
cs_get_user_team(id) == CS_TEAM_T ){
                
                
cs_reset_user_model(id)
                
                switch(
checkT[id]){
                    
                    case 
1:{
                        
                        
cs_set_user_model(id"isis")
                        
                        
checkPS[id] = 1
                        
                    
}
                    
                    case 
2:{
                        
                        
cs_set_user_model(id"alqaeda")
                        
                        
checkPS[id] = 2
                        
                    
}
                    
                }
                
                
            }
            } else if  (
equaliiSkin"isis" ) || equali iSkin"alqaeda" )){
            
            if( 
cs_get_user_team(id) == CS_TEAM_CT ){
                
                
cs_reset_user_model(id)
                
                switch(
checkCT[id]){
                    
                    case 
1:{
                        
                        
cs_set_user_model(id"fbi")
                        
                        
checkPS[id] = 3
                        
                    
}
                    
                    case 
2:{
                        
                        
cs_set_user_model(id"sias")
                        
                        
checkPS[id] = 4
                        
                    
}
                    
                }
                
            }
            
        }
        
    } else 
ColorChat(0GREEN"^x04[%s]^x01 Player is not alive!" )
    

The problem is that the output is this
PHP Code:
ColorChat(0GREEN"^x04[%s]^x01 Player is not alive!" 
I don't know why is not working

Last edited by lexzor; 01-17-2021 at 08:12.
lexzor is offline
 


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 14:07.


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