26.12.2014, 19:47
Hello. I have problem, i can not do AFK system.
In public OnPlayerUpdate - AFK[playerid] = 0;
but, system dont working, 3D text dont appears, and this public is 1 second timer. Help me please and exuseme for my English
PHP код:
fCallBack::AFKTimer(playerid)
{
AFK[playerid]++;
if(AFK[playerid] == 5)
{
afkplayer[playerid] = Create3DTextLabel("{66cc33}AFK: {FFFFFF}00:00", -1, 30.0,40.0,10.0,40.0, 0);
Attach3DTextLabelToPlayer(afkplayer[playerid], playerid, 0.0, 0.0, 0.1);
}
else if(AFK[playerid] < 5)
{
Delete3DTextLabel(afkplayer[playerid]);
}
return 1;
}
but, system dont working, 3D text dont appears, and this public is 1 second timer. Help me please and exuseme for my English