So I got this script. The point is that they can use the Loto every 10th minute. When they connect they also have to wait 10 minutes before they can use it.
PS: These are just partions of the script.
PHP Code:
new InvisUsed[33];
public plugin_init()
{
register_plugin("Stuff", "1.0", "vL.");
RegisterHam(Ham_Spawn, "player", "Fwd_Ham_Spawn_Post", 1); // <- This works
set_task(600.0,"LotoUnUsed",_,_,_,"b"); // <- This doesn't works
}
public client_putinserver(id)
{
set_task(3.0,"LotoUsed",id);
}
public LotoUsed(id)
{
LotoUsed[id] = true;
}
public Fwd_Ham_Spawn_Post(id) // <- This works
{
LotoUsed[id] = false;
}
public LotoUnUsed(id) // <- This doesn't works
{
LotoUsed[id] = false;
}