25.12.2014, 00:46
PHP код:
timer CallTimer[1000]()
{
Works only if its called Scriptwise.
blablabla
}
task FullTimeTimer[1000]()
{
Works when the server is up and keeps running
foreach
{
blablabla
}
}
ptask OnlinePlayerTimer[1000](playerid)
{
Works when a player connects and keeps running till he logs
}
//How timer[]() works.
new Timer:TimerID;
CMD:lol(playerid, params[])
{
TimerID=repeat CallTimer();
return 1;
}
CMD:endlol(playerid, params[])
{
stop TimerID;
return 1;
}

