I observed the /afk problem, It can only be used by 1 player at a time. I am new with arrays in amxx. So I need a little help.
I will have to do
Then save players id and team like this.
PHP Code:
teams[id] = get_user_team(id);
and later, call it as required.
PHP Code:
cs_set_user_team(id, teams[id]);
and for making it useable for more than 1 player, I will have to tweak:
PHP Code:
new afk[32];
if( ........ && afk[id] == 0 && .....){
//make afk
//Reset variable
afk[id] = 1 ;
}
Will this work for afk thingy ?