id = Player's ID
model = Player's team ( CS_TEAM_T, CS_TEAM_CT, CS_TEAM_SPECTATOR and CS_TEAM_UNASIGNED )
In your case, you should just use
PHP Code:
if(cs_get_user_team(playerid) == CS_TEAM_CT
Try make what I'm doing aswell, searching API for learn how to do something. And if you doesn't find anything on the API related to what you're seaching for ( what's hard ), search that stuff here, most of them already exists or already someone are using him and you can copy it.
Thanks EFFx for your usefull comment i appreciate your help.