Its me again! (apparently)
So Im trying to add a task when a player joins my server to be automatically spawned after a few seconds but it seems that it bugs the whole hidenseek plugin and the plugins on the server doesnt work as supposed as well.
PHP Code:
public client_putinserver(plr)
{
g_bConnected[plr] = true;
g_bAlive[plr] = false;
g_bFirstSpawn[plr] = false;
set_task(5.0, "TaskRespawn", plr); //this is what i added
return PLUGIN_CONTINUE;
}
Can somebody explain why I can't use set_task in client_putinserver and how can I make something similar to this? Thanks!