This would be enough, you're hardcoding it with the taskids, which is absolutely not needed in this case.
->
PHP Code:
public client_putinserver(id)
{
if (is_user_bot(id))
{
set_task(5.0, "SetBotRandomClass", id)
}
}
public SetBotRandomClass(id)
{
if(is_user_connected(id))
{
new maxclass = MAX_ZCLASS - 1
zp_set_user_zombie_class(id, random_num(0, maxclass))
}
}
This is simple enough.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.