Raised This Month: $ Target: $400
 0% 

Solved cs_set_user_model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-17-2021 , 03:30   Re: cs_set_user_model
Reply With Quote #6

also, i have another problem.

skin "alqaeda" is a model for terrorist

if i have that model enabled when i'm terrorist. some players see me as a default counter-terrorist models.

I don't have the same problem as them and i don't know why this is happening. what should i do ? this is skincheck code

PHP Code:
public plugin_init() {
    
RegisterHam(Ham_Spawn"player""skincheck"1
}

public 
skincheck(id){    
    if(
is_user_alive(id) && get_user_flags(id) & VIP_FLAG){    
        
cs_reset_user_model(id)        
        if ( 
cs_get_user_team(id) == CS_TEAM_T ){            
            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( 
cs_get_user_team(id) == CS_TEAM_CT ){            
            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                    
                
}                
            }            
        }        
    }


Last edited by lexzor; 01-17-2021 at 03:42.
lexzor 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 14:07.


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