15.08.2012, 12:45
how to check if the player isnt logged in after 30 seconds.. and kick, with no timers.. is possible ?
https://sampwiki.blast.hk/wiki/SetTimerEx
make varible to check is login/register and if not after 39 sec is not login/register to kick him |
SetTimerEx("@Example", 30000, false, "i", playerid);
forward @Example(playerid);
@Example(playerid)
{
if(Info[playerid][Status] != 1) return Kick(playerid);
return 1;
}
Yeah, that would work, function should be public though. But yes you could do it with gettime and on player update, I just don't see why. It's like some people have grown a phobia against using timers (probably due to godfather) however when used properly they're not bad at all.
|