Detecting paused players?
#1

'Sup y'all?

I wanna create a 3DTextLabel over any player's head which is paused. I just don't know how I gotta do this.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=152645

Maybe that would be any help?
Reply
#3

That's not the way I'd like; in my case, a text should appear above the player's head only if he "ALT + TAB'd" or pressed "ESC"!
Reply
#4

Thanks! How can i make a label above his head with paused?
Reply
#5

That's just what I asked above, I wanna know the same, just when he pressed "ESC" or "ALT + TAB".
Reply
#6

Here's a FS i made couple of days ago. It creates a text above your head, witch updates each second showing how many seconds you have been AFK for.

https://sampforum.blast.hk/showthread.php?tid=332924
Reply
#7

Quote:
Originally Posted by DBan
View Post
Why players getting Paused above them head when they are not afk?
Code:
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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)