10.11.2016, 09:38
As you are saying all of them are for timers you can use a defined function to use the defaults and use the actual syntax when giving it your own variable values.
or just use a stock like the guy above me, just with small changes.
note the return, so now you can do mytimervariable=call_kick(1000, playerid); and kill the kick timer from mytimervariable.
or just use a stock like the guy above me, just with small changes.
PHP Code:
#define DefaultKick(%0, %1) SetTimerEx("public_kick", %0, 0, "iii", %1, false, false);
or
stock call_kick(delay, playerid, ban = false, login = false)
{
return SetTimerEx("public_kick", delay, 0, "iii", playerid, ban, login);
}