Raised This Month: $ Target: $400
 0% 

Event for Player is not in Game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-22-2011 , 17:55   Re: Event for Player is not in Game
Reply With Quote #1

I don't think it's possible do directly detect if the player minimized game or is in game menu but you can check if he moved/rotated or pressed a action in a certain time... that can determine if the player is afk.

Instead of spawn() (which is buggy) you could use ExecuteHam(Ham_CS_RoundRespawn, player) and instead of set_user_godmode() (which also seems buggy, dunno why) you can hook Ham_TakeDamage and check for "godmode" players and return HAM_SUPERCEDE if they are "gods"... but if set_user_godmode() works just fine you *should* use it since it's more efficient.
__________________
Hunter-Digital is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-23-2011 , 06:50   Re: Event for Player is not in Game
Reply With Quote #2

Quote:
Originally Posted by Hunter-Digital View Post
and instead of set_user_godmode() (which also seems buggy, dunno why)
Never had any problems with that native.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 01:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode