PDA

View Full Version : Anti Spec Hopping


=|[76AD]|= TatsuSaisei
01-12-2008, 11:14 AM
Well, I have a problem and I need a plug in. Basic function to stop spec hopping.



This is what I am aiming for …..



When they join spec then join team to avoid spawn tiems, I want to make them wait longer then normal. If possible I want them to wait 45 seconds and while they are in the wait process I would like them to receive a motd still message linking to an adjustable web link to pop up on them. I would also like to gag them and prevent chat while waiting..



On/off feature

Weblink feature

45 second wait

Gag the mic

Provent chat messages



Do you think this would be possible to build a source code for me? I really have no experience with amxx codes and need some ones help here. This also should be able to be used with earlier release of amxx.



Rollin~Death

Not dod specific, although all the cvars lead with dod_


INSTRUCTIONS:
* Say Commands:
say /specmode - Command to let others know if plugin is active and how much time to wait
* Cvars:
dod_spec_mode "1" - Enables the plugin (0=off/1=on)
dod_spec_motd "1" - Enables motd display (0=off/1=on)
dod_spec_timer "1" - Enables timer display (0=off/1=on)
dod_spec_motd_url "http://dodplugins.net (http://dodplugins.net/)" - URL for the motd display
dod_spec_motd_title "Anti-Spec Hopping" - motd title (also used in say message output)
dod_spec_free_msg "You are free to choose a team and begin playing again!" - message to display to player once timer runs out
dod_spec_timer_top "SPECTATOR" - word displayed over the remaining time left
dod_spec_timer_bottom "TIMER" - word displayed under the remaining time left
dod_spec_timer_r "255" - amount of RED color used in timer display
dod_spec_timer_g "0" - amount of GREEN color used in timer display
dod_spec_timer_b "0" - amount of BLUE color used in timer display
dod_spec_timer_x" -1.0" - position of timer on X axis (-1.0=centered/0.00-0.99=valid positions)
dod_spec_timer_y "0.60" - position of timer on Y axis (-1.0=centered/0.00-0.99=valid positions)
dod_spec_time "30" - number of seconds before being allowed to rejoin a team


only thing not put in was mic gagging/chat prevention...

Ba5ic
01-12-2008, 02:46 PM
Gonna try this out rite away!.

:)

jondoe
01-18-2008, 04:46 AM
it works but if you die at the very end of the round, You cant spec jump in order to spawn again. The cure for lame spec hoppers is plenty of good admins.

{DwP} 325th ABN
01-19-2008, 08:15 PM
thanks tatsu im on this one to good job

staticred
02-16-2008, 07:31 PM
very cool and works good.. but is there a way to change the motd_url . iv changed it to a simple html page i made saying dont spec jump you must wait 15 seconds to respawn.. iv looked all through the code.. replaced the motd_url with mine.. but it keeps showing the dodpluins.net webpage.....

jondoe
02-16-2008, 10:03 PM
Can you make the plugin have cvar for admin immunity ?

|OnEHiTwOnDeR|SoCal
02-17-2008, 02:31 AM
lol wtf

you allow admins to break rules but not players?

Dr.G
02-17-2008, 09:29 AM
Is this message as much help as the one above?

jondoe
02-17-2008, 04:46 PM
I'm not following either of 7 or 8's posts.

What are you both trying to convey ?

#7 rules what rules ?

#8 help ?, help about #7's post

I'm lost, Heheh.

staticred
02-18-2008, 12:11 PM
never mind my post. i got it fixed :P for some reason it made a temp html motd in my dod folder and it was the default one you added to the code ( this website address) and it kept showing that when people went to spec.. but all fixed now.. great plugin. thanks :)

=|[76AD]|= TatsuSaisei
02-21-2008, 07:58 AM
very cool and works good.. but is there a way to change the motd_url . iv changed it to a simple html page i made saying dont spec jump you must wait 15 seconds to respawn.. iv looked all through the code.. replaced the motd_url with mine.. but it keeps showing the dodpluins.net webpage.....

the secret to changing any CVAR is to not only change it in the plugin/config file, but unless you plan on rebooting your server you WILL have to manually change the cvar in the console as well.. since it will "remember" the original until the server is restarted and rereads the config file or someone manually changes it...

RollinDeath
07-15-2008, 09:16 PM
I just wanted to say that the plug in was great and work like a charm on 1.76d amxx. The only problem I ever noticed was when the map loaded and you joined spectator immediately, you would then have to wait out the timer before you could join any other team. I have never had any other known problems and the fact that people would rather spec hop than wait out the time limits really disturbs me now more than ever since there are plug in's which actually reduce spawn times for servers who wish to decrease a players waiting time.

Legend Born
03-07-2009, 01:07 PM
you allow admins to break rules but not players?

Just to say, as an admin (who's not running--yet--the ESP plugin) who relies on occasionally jumping into spec to briefly watch someone or take a demo, yeah I can see wanting to be immune to this.