Whats wrong with Afk Check?
#1

Heey all,

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);
Please,how can i fix this?

Thanks Admigo
Reply


Messages In This Thread
Whats wrong with Afk Check? - by Admigo - 14.04.2012, 18:48
Re: Whats wrong with Afk Check? - by mineralo - 14.04.2012, 19:02
Re: Whats wrong with Afk Check? - by Admigo - 14.04.2012, 19:12
Re: Whats wrong with Afk Check? - by Cypress - 14.04.2012, 19:22
Re: Whats wrong with Afk Check? - by Admigo - 14.04.2012, 23:10
Re: Whats wrong with Afk Check? - by MP2 - 14.04.2012, 23:16
Re: Whats wrong with Afk Check? - by FalconX - 14.04.2012, 23:30
Re: Whats wrong with Afk Check? - by MP2 - 14.04.2012, 23:34
Re: Whats wrong with Afk Check? - by FalconX - 14.04.2012, 23:37
Re: Whats wrong with Afk Check? - by Admigo - 15.04.2012, 06:49

Forum Jump:


Users browsing this thread: 4 Guest(s)