Raised This Month: $ Target: $400
 0% 

Spawn AFK Killer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leetbix
Member
Join Date: Dec 2009
Old 12-08-2009 , 22:21   Spawn AFK Killer
Reply With Quote #1

Wanted to create a script for jailbreak, basically if they do not move for 30 seconds on terrorists they will die, for being in the cells. Is this possible?
Leetbix is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 12-08-2009 , 23:01   Re: Spawn AFK Killer
Reply With Quote #2

you really shouldn't double post. if a question goes unanswered for a few days and your still having trouble, you can try "bumping" your original thread.

and yes, it is possible. for instance, you can store a players position in the map (see GetClientAbsOrigin) in an array each time they spawn. then, after your timer has lapsed, compare their current position to the one you stored. if it hasn't changed, slay!!!

you could look at the source code for the various afk plugins already available to get an idea.
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.

Last edited by meng; 12-08-2009 at 23:09.
meng is offline
Send a message via Yahoo to meng
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 12-09-2009 , 16:38   Re: Spawn AFK Killer
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=111287

#4 Post
SilentLikeSilence 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 18:23.


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