EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (11) awp (23) ban (18) ba_jail (17) bhop (19) block (18) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2513) Damage (36) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (389) easy (18) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (288) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (55) hegrenade (13) hl2dm (332) HP (13) info (48) information (16) IP (11) jail (26) jailbreak (11) join (23) jump (12) kick (22) kill (44) kills (22) knife (57) leveling (36) management (14) mani (14) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (13) music (29) mute (17) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (56) props (23) protection (27) punishment (49) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (41) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (151) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (25) slay (13) soccer (11) sound (45) sounds (92) spanish (11) spawn (63) speed (25) statistics (13) stats (48) status (11) STEAMID (24) Superhero (13) surf (31) Team (25) team-balance (14) teleport (12) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (12) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (10) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (6) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (9) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-08-30, 3:08 pm 
   Post subject: Ace Afk v2: *Update 13 June 2007*

Basically this will check your position on player spawn and if you are still in the same position when you die, it will move you to spectator. Simple as that.

Also

If player says AFK he will be shown a menu.

1. Yes - Go AFK
2. No - Do Not Go AFK
3. Never ask again (always go AFK)

The option to always go AFK will be reset if the player leaves the server, the keys are not stored to disk. (Thanks to adamscybot for this idea).

Saying AFK will only work if you are on the game, if you spectate nothing will happen (as Spectating is already AFK) :-)

Requires Mani admin for menu ate the moment but this will change soon.

It will not do this if you die from a team kill event.

However, if you are killed by a member of the opposite team before you get chance to move (e.g AWP at T spawn in dust2), you will be moved to spectators.

Also, although it is an easy excuse for me; I feel that the lengths required to go to, to get afk checking to run "timed" rather than "player death" are outweighed by the fact that 99% of the time an afk player will be eventually killed by a member of the other team anyway.

So anyway some of you may find this useful and even if not it may be another very simple example of using temporary es_keys.

Requirements:

Event Scripts v1.0 or higher
Mani Admin for menus


INSTALLATION:

Download the .rar file
    Extract the folders exactly as they are in the rar file.
    ../addons/eventscripts/ace_afk/es_ace_afk.txt
    Add the line es_load ace_afk your autoexec.cfg
    Restart Server
    Banish AFKers and Spawn Campers :-)



1.01 added player_say command "afk" which will move player to spectate and announce to all players that player has gone AFK. This is in preparation for some more additions due in next few days.

1.03 Optimised the code so it should be even quicker than before. Also added delayed message to the AFK person telling them why they are in spectate mode.

1.05 Tweaked code slightly and makes check that the person killed is not a bot. If it IS a bot then no AFK checks are done, as bots can not be moved to spectate and also can not go AFK. This speeds up the code slightly when bots die as well.

1.06 Added a switch to enable simple turning on and off of AFK checking. I have done this becuase some poeple have difficulty using unregister commands, (this includes me).

Ace AFK is ON by default.
It can be turned OFF by any admin with RCON acces typing afkoff in chat area.
It can be turned ON by any admin with RCON acces typing afkon in chat area.
It can also be switched off by adding the line "es_xsetinfo ace_afk_switch 0" to any map config. This enable you to switch it off for AIM maps etc. It will be on again when match changes.
There are instructions and comments in the script file.

2.15 Converted to Add-on format

Now uses es_changeteam (Thanks for reminding me Wonder) so will work on all players.

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


Last edited by Ace Rimmer on 2007-06-13, 12:42 pm, edited 43 times in total.




User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-08-30, 3:31 pm 

this will do nicely for my needs as well. thank you.

(i got the zip to work)


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 3479
Location:
Calgary, Waterloo, Ottawa
 
New postPosted: 2005-08-30, 4:01 pm 
   Post subject: Re: Ace_Afk which is extremely simple and boring

Ace Rimmer wrote:

I do not intend to clash with ichthys' extremely powerful script

-lawl- :lol:

Ace Rimmer wrote:
So anyway some of you may find this useful and even if not it may be another very simple example of using temporary es_keys.

QFE for ajax!

_________________
Image
Image


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-08-30, 4:07 pm 
   Post subject: Re: Ace_Afk which is extremely simple and boring

ichthys wrote:
Ace Rimmer wrote:
So anyway some of you may find this useful and even if not it may be another very simple example of using temporary es_keys.

QFE for ajax!


hence...
ajax wrote:
this will do nicely for my needs as well. thank you.


meaning, thank you for doing it so i didn't have to :P


User avatar
Moderator
Moderator
Profile

Posts: 4920
Location:
/dev/null
 
New postPosted: 2005-08-30, 5:01 pm 

hurray now I dont have to do this!

_________________
~ The_WuH
_________________
All code I give out is licensed - http://creativecommons.org/licenses/by-nc-sa/3.0/us/
Image
Weeks of programming can save you hours of planning.


User avatar
Reader
Profile

Posts: 87
Location:
San Francisco
 
New postPosted: 2005-08-30, 6:14 pm 

Hey Ace,
Thanks for all you great work first of all.. kudos to you..

I tried downloading this script.. and when I open.. it says that its damaged or currupted.. tried using Winzip, WinAce, WinRAR... same thing...

Thanks..

_________________
Image
Website - www.poontangclan.net
Forums - forums.poontangclan.net
Stats - stats.poontangclan.net


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-08-30, 6:59 pm 

zerosin wrote:
Hey Ace,
Thanks for all you great work first of all.. kudos to you..

I tried downloading this script.. and when I open.. it says that its damaged or currupted.. tried using Winzip, WinAce, WinRAR... same thing...

Thanks..


I have added another version.

Both versions work fine for me.

It would have been nice if Ajax had explained how he got it to work, as he was complaining of the same problem as you. :)

I asked him if he had tried uising WinRar or latest Winzip.

I am using WinRAR 3.41

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


Last edited by Ace Rimmer on 2005-08-31, 1:27 am, edited 1 time in total.

User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-08-30, 7:01 pm 

sorry i was using WinZip 8.1. i didn't follow up because i thought it was a glitch on my machine -- i had initally aborted the download and thought that's what caused it.

also i deleted my dupe version since your second version seems to work.


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-08-30, 7:03 pm 

Well, I use RAR and Zip files all the time to transfer data around at work and home. There is something wrong here: I just tried to "upload a new version" and go this:

Quote:
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's extremely simple boring and not really very clever at all afk'

UPDATE phpbb_attachments_desc SET physical_filename = 'ace_afk_165.zip', real_filename = 'ace_afk.zip', comment = 'ace\''s extremely simple boring and not really very clever at all afk', extension = 'zip', mimetype = 'application/x-zip-compressed', filesize = 1310, filetime = 1125446451, thumbnail = 0 WHERE attach_id = 318

Line : 633
File : posting_attachments.php


Tried with explorere and firefox.

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-08-30, 8:27 pm 

Ace Rimmer wrote:
Well, I use RAR and Zip files all the time to transfer data around at work and home. There is something wrong here: I just tried to "upload a new version" and go this:

Quote:
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's extremely simple boring and not really very clever at all afk'

UPDATE phpbb_attachments_desc SET physical_filename = 'ace_afk_165.zip', real_filename = 'ace_afk.zip', comment = 'ace\''s extremely simple boring and not really very clever at all afk', extension = 'zip', mimetype = 'application/x-zip-compressed', filesize = 1310, filetime = 1125446451, thumbnail = 0 WHERE attach_id = 318

Line : 633
File : posting_attachments.php


Tried with explorere and firefox.


i've seen that before on the sourcemod forums. if i recall it had something to do with a character problem in the filename or description. try removing the apostrophe from your file comment next time to see if that helps. besides the forums are acting up, so it may be that too.


User avatar
Helper
Profile

Posts: 209
Location:
GERMANY
 
New postPosted: 2005-08-31, 3:56 am 

TNX !!

:shock:

_________________
Image


User avatar
Newbie
Profile

Posts: 37
 
New postPosted: 2005-09-10, 1:08 pm 
   Post subject: ...

Kick spectator after X round possible ???


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-09-10, 6:29 pm 
   Post subject: Re: ...

stu25 wrote:
Kick spectator after X round possible ???


Yes mate, easy and already done. Might as well publish it tomorrow but the other AFK script by Ichthy features that and a heck of a lot more. You may want to check that out too?

Cheers,

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-09-10, 8:29 pm 

Updated V1.01 added player_say command "afk" which will move player to spectate and announce to all players that player has gone AFK. This is in preparation for some more additions due in next few days.

New additions will be:

On player saying "afk" he can choose to spectate or be frozen in game.
Name will be changed to "AFK: Name"
A few other options.

This is already working on my server but must be consolidated into script pack.

This also is nice as it does not clash with the other types of AFK script.

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-09-12, 11:37 am 

Updated V1.02

1.02 script now reads player name on connect and if player opts to go afk or is found afk (by not moving and being killed before round end) he will be moved to spectate and name changed to "AFK: Player name" also name reverts to connected name on respawn.

This is also in preparation for some more additions due in next few days.

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-09-12, 4:08 pm 

1.03 Removed the naming system, it sucked to be honest. Nice idea but slowed down a very simple script and also there is a limit on name changes so frequent AFKers would end up with a permanent AFK: tag.

I have optimised the code though so it should be even quicker than before. Also added delayed message to the AFK person telling them why they are in spectate mode.

I think I am going to leave this script as it is now. All players on my server prefer the simple-ness of it.

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


User avatar
New User
Profile

Posts: 2
 
New postPosted: 2005-09-15, 3:18 pm 

Hi m8 nice script by the way!,, I am having problems getting it to work though, for some reason it th message comes up "moving xxxx to spectate for obviously being AFK" but it doesn't acutally move me.. and i am still there at spawn the next round, same thing happend with itchy's script too. I got the messages but it didnt actually move me,, but it would disconnect me if i was in spectate for more than 3 rounds

i haven't changed any files and the script is in Events>Ace_Afk and my auto exec looks like this:

mattie_eventscripts 1
eventscripts_subdirectory Events
eventscripts_register Ace_Afk

please help,, as have a very busy server all the time, afk's are soo annoying...

many thanks in advance

Neil :D


User avatar
Moderator
Moderator
Profile

Posts: 3171
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2005-09-15, 5:31 pm 

Check your mani immunities. :)

_________________
How To: Download Ace Event Scripts (2010)
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.riffsandrays.com


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 152 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group