Ok first i put chat message in here:
PHP Code:
public bomb_planted(id)
{
set_task(1.0,"check_defuse_camper")
ColorChat(0,GREEN,"asdasdasd")
}
When i plant the bomb it shows me the message ASDASDASD.Then i remove it from here and place it there:
PHP Code:
public check_defuse_camper()
{
new players[32],num, i,id
get_players(players,num)
for(i=0;i<num;i++)
{
id = players[i]
if(!is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
{
set_task(1.0,"CheckMoving", 1029 , _, _, "b")
ColorChat(0,GREEN,"asdasdasd")
}
}
}
Well not it doesn't show me the message.Is there anything wrong with my loop?I dont get any runtime errors or something pls help.