14.04.2012, 18:48
Heey all,
I used a code on forums for checking players who are afk.
But everyone have the 3dtextlabel Paused when they dont afk.
Please,how can i fix this?
Thanks Admigo
I used a code on forums for checking players who are afk.
But everyone have the 3dtextlabel Paused when they dont afk.
Код:
//onplayerupdate
if( GetPVarInt(playerid, "pause") != 0 )
{
label=Create3DTextLabel("Paused!",0xFFFFFFFF,30.0,40.0,50.0,40.0,0 ,0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
else if( GetPVarInt(playerid, "pause") == 0 )
{
Delete3DTextLabel(label);
}
SetPVarInt(playerid, "pause", 1);
Thanks Admigo





