Use the
for loop
I'm no pro, but this might help you... and remove the "set_task"s
PHP Code:
public urfunction(id)
{
new i //We need this variable for the "for" loop
for(i = 0; i < 4; i++)
{
client_cmd(id, "say lol")
}
/* For loop:
First parameter sets "i"'s value to 0
Second parameter tells when to repeatedly print out "lol" (in this case while "i"'s value is less than 4
Third parameter adds up "i"'s value by 1
So when it adds up to 4, it will stop printing out "lol"
You have to be careful when making loops, you can crash your server
*/
return PLUGIN_HANDLED
}