Raised This Month: $12 Target: $400
 3% 

Admin Push out of the way! v 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Geesu (62)
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 08-12-2005 , 16:19   Admin Push out of the way! v 1.2
Reply With Quote #1

Code:
/*
* AMXX Mod script.
*
*  Admin Push out of the way! v 1.2
*  created by jsauce
*
*
*  Have you ever been playing on a map like cs_militia and too many terrorists have
*  gone down the sewers? Well it really ticked me off when I would get stuck in a corner
*  because someone decided to plant his ass right next to mine. This would usually result
*  in my death if I am getting shot and cannot move. This plugin takes care of that nonsense
*  once and for all. If your the admin and someone is in your way they are forced to move out
*  of the way. This plugin will not force other admins to move, hopefully you don't have to deal
*  with that. Also you wouldn't want another admin moving you. Admin has its privledges.
*
*
*  NOTE:
*  Okay a little bit about the push level. It's set to a default of 10, if that's too powerful 
*  for you, lower it. However, if you think it needs to be stronger make the value higher. To 
*  give you an idea I set to 100 during tests with bots and anyone that touched me flew right
*  across the screen. Be careful with this value. By setting it too high you could potentially
*  kill players who are too close to a wall if they touch you.
*
*
*  
*  four defined:	
*  ADMIN is set to ADMIN_LEVEL_A
*  IMMUNE is used for ADMIN_IMMUNITY check. request v3x!
*  NON_ATTACKONLY can be changed if you want to be able to move players when your in attack.
*  AUTOSENSE can be used to detect whether a map matches a predefined one you setup.
*
*  If you want to use AUTOSENSE create a file in your configs directory called 
*  adminpushconfig.cfg. In this file one line at a time add a map name you would like
*  to have. On map change if the current map matches a map in the mapconfig file, it will
*  automatically enable the plugin. This is useful if you only want to have this running
*  during a few maps like cs_militia. Example config:
*
*  cs_militia
*  cs_siege
*  de_train
*
*
*
*  1.2 added define IS_IN_USE to check if use key is pressed. Request ScubaSteve3465
*      small bugfix, should not now reverse the effect if you enable on attack. Rather it
*      will allow it to work when attacking or not attacking. Sorry about that.	
*  1.1 added cvar for push level. default 10 is a normal push. added autosense. added immunity, requested by v3x!
*  1.0 initial release
*
*/
#include <amxmodx>
#include <engine>
#include <cstrike>
- 1.1 changes -

v3x wanted it to check immunity it now does.
It also has an autosense feature that will allow people to use a config file to setup whether they want the plugin to be actively pushing people when on certain maps.

I also added the ability for the admin to set the push level which is default at 10, but can be changed with the cvar amx_adminpushlevel. Lower = less force, higher = more force.

- 1.2 changes -

Added the ability to make it so if you leave the define IS_IN_USE line uncommented, it will only work if you push the use key. So you can run into users freely but if you want them to move, you can press the use key.

Commenting this line will set it back to normal, meaning anyone who runs into you or you run into them they get moved. For best effect its best to have NON_ATTACKONLY commented if you plan to use the IS_IN_USE feature. If not, then it will still check to make sure you are not attacking first.

Okay I fixed a bug which caused the reverse effect when commenting NON_ATTACKONLY out. This would cause it to simply act in the opposite way only working when attacking and not working at all when not attacking. This was never the plan, so it has been fixed. Should not work to if you comment out NON_ATTACKONLY it works all the time, attacking or not.

-USAGE -

The cvar amx_adminpush is set to 1 by default. Setting it to 0 will turn off this plugin. This plugin will automatically move a player who is touching you or if you touch them. So basically if they get in your way they get moved.
Attached Files
File Type: sma Get Plugin or Get Source (amx_adminpush.sma - 11331 views - 4.9 KB)
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-12-2005 , 17:51  
Reply With Quote #2

Great plugin. I would use it for a more simple server, but I have Jedi Force Grab and about 100 more plugins running so I don't really need it. Once it gets approved, 5/5.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Blitz
Senior Member
Join Date: Jul 2005
Location: Google
Old 08-12-2005 , 18:02  
Reply With Quote #3

Nice.
This will be very useful.
__________________
[img]http://img268.**************/img268/7071/blitz4ek.jpg[/img]

In the beginning, God created the search button.
Blitz is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-12-2005 , 18:17  
Reply With Quote #4

Yea man this plugin rocks Very nice job I love the idea. Pushing people We were pushing people off buildings in svencoop.
__________________
Sig Under Construction.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 08-13-2005 , 00:19  
Reply With Quote #5

Sounds like proding from worms
__________________
Plugins:
none

n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-14-2005 , 00:05  
Reply With Quote #6

I'd be pissed if someone pushed me off the thing in CT spawn on assault, haha.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 08-14-2005 , 01:14  
Reply With Quote #7

teh roof?
__________________
Plugins:
none

n0obie4life is offline
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 08-14-2005 , 01:54  
Reply With Quote #8

Well I was thinking in my next revision I can give the admin the ability to change the force he pushes with. I know some of the guys I play with like the plugin they think its funny to bounce up and down on top of me when we're playing others don't like it so much especially in the sewers of militia because they don't get to force their way in and get all the kills. I didn't want to have it so that you could abuse it. It literally was born from one admin on our server screaming at a player because he wouldn't move. Everytime for like 4 rounds the player would follow the admin and sit next to him in the sewer. I think this is way better than the admin blowing his temper and banning the player.
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-14-2005 , 01:58  
Reply With Quote #9

Make it so admins with ADMIN_IMMUNITY aren't affected by the push. ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 03:12  
Reply With Quote #10

Man i jus tfound a really cool thing about this plugin. In svencoop when you do playerstacks you can jump up in the air with someone on top of you and launch them like TFC sniper shots... it is the coolest thing man this plugin rocks... so many cool things you can do with it.
__________________
Sig Under Construction.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
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

Forum Jump


All times are GMT -4. The time now is 08:20.


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