SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/04/2012, 09:39 AM   #1
Twisted_Insane
Gangsta
 
Twisted_Insane's Avatar
 
Join Date: Feb 2012
Posts: 980
Reputation: 95
Default Detecting paused players?

'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.
__________________
Join the BEST Gangwar-server ever; Los Santos Gangwars!
http://forum.sa-mp.com/showthread.ph...42#post2235842
^ Read!

Any problems with ZCMD-commands? Simply PM me your topic or check out the tutorial(s) in my signature, more'll come soon!

Twisted_Insane is offline   Reply With Quote
Old 14/04/2012, 09:47 AM   #2
DBan
Huge Clucker
 
Join Date: Jul 2010
Posts: 242
Reputation: 16
Default Re: Detecting paused players?

http://forum.sa-mp.com/showthread.php?t=152645

Maybe that would be any help?
DBan is offline   Reply With Quote
Old 14/04/2012, 01:55 PM   #3
Twisted_Insane
Gangsta
 
Twisted_Insane's Avatar
 
Join Date: Feb 2012
Posts: 980
Reputation: 95
Default Re: Detecting paused players?

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"!
__________________
Join the BEST Gangwar-server ever; Los Santos Gangwars!
http://forum.sa-mp.com/showthread.ph...42#post2235842
^ Read!

Any problems with ZCMD-commands? Simply PM me your topic or check out the tutorial(s) in my signature, more'll come soon!

Twisted_Insane is offline   Reply With Quote
Old 14/04/2012, 01:56 PM   #4
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,045
Reputation: 297
Default Re: Detecting paused players?

Thanks! How can i make a label above his head with paused?
__________________
QUITED SA-MP
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 14/04/2012, 02:45 PM   #5
Twisted_Insane
Gangsta
 
Twisted_Insane's Avatar
 
Join Date: Feb 2012
Posts: 980
Reputation: 95
Default Re: Detecting paused players?

That's just what I asked above, I wanna know the same, just when he pressed "ESC" or "ALT + TAB".
__________________
Join the BEST Gangwar-server ever; Los Santos Gangwars!
http://forum.sa-mp.com/showthread.ph...42#post2235842
^ Read!

Any problems with ZCMD-commands? Simply PM me your topic or check out the tutorial(s) in my signature, more'll come soon!

Twisted_Insane is offline   Reply With Quote
Old 14/04/2012, 03:04 PM   #6
Shetch
Gangsta
 
Shetch's Avatar
 
Join Date: Feb 2011
Posts: 527
Reputation: 40
Default Re: Detecting paused players?

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.

http://forum.sa-mp.com/showthread.php?t=332924
__________________
Shetch is offline   Reply With Quote
Old 14/04/2012, 05:24 PM   #7
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,045
Reputation: 297
Default Re: Detecting paused players?

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?
__________________
QUITED SA-MP
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting a character in a players name LiamM Scripting Help 4 18/01/2012 04:05 PM
Kicking Paused Players Michael[NBK] Scripting Help 3 11/11/2011 08:53 PM
Detecting if players in city MWF2 Help Archive 3 02/12/2010 04:07 AM
Little problem with detecting if a player is paused chaosnz Help Archive 3 16/06/2010 09:06 AM
Detecting Team Players Green_Team Help Archive 1 21/04/2009 01:43 PM


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.