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(id, iSkin, charsmax(iSkin))
if (equali( iSkin, "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 (equali( iSkin, "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(0, GREEN, "^x04[%s]^x01 Player is not alive!" )
}
The problem is that the output is this
PHP Code:
ColorChat(0, GREEN, "^x04[%s]^x01 Player is not alive!" )
I don't know why is not working