using same task id for every player isnt gonna make it work better.
try using client_putinserver instead of client_authorized
PHP Code:
public client_putinserver(id)
{
if (!task_exists(id)) set_task(60.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id, print_chat, "[VIP] Write /wantvip and u will see VIP privilegies and hot to get VIP.")
}
Quote:
|
And why this code gives grenades every round and when new player joins server?
|
because its coded to loop trough all players when one players spawns, and give items to players with ADMIN_LEVEL_I access