Hello AlliedModders.
I requested an antirush plugin in my topic :
Advanced Anti-rush plugin REQ and i think it was too complicated,luckly someone sent me a pm containing an existing POLISH plugin that works like charm for stoping early cts aggression but still,i want to add some features and it has some bugs,i'm really hoping that you guys can help.
The Cvars :
amx_antirusher 1 /on-off
amx_antirusher_action 7 / 0-10 / //0.chat waring,1.slap, 2.kill, 3.kick, 4.Ban, 5.loss speed, 6.Flashed, 7.push back,8.kill if you fire 9-Messes up you aim/10-money loss
amx_antirusher_sound 1 / sound when touching the zone ( NO sir)
amx_antirusher_sound_mode 0 / No sir iis played for all players
amx_antirusher_slap 8 /...
amx_antirusher_time 40.0 / How long the plugin works in each roud
amx_antirusher_immunity 0 / admins
amx_antirusher_warn 0 / shows zonnes as green lines,but the warning and time system are broken
amx_antirusher_freq 0.1 /check
amx_antirusher_zasady 1 / no idea
amx_antirusher_people 4 / won't work if there are less than 4 ct's and 4 t's
/antirusher_menu in chat to : creat,edit,delete zones,just like walkguard
"NEW"
amx_antirusher_messages 2 // 0 - off, 1 - on(standard color), 2 - colored message, (default 1)
amx_antirusher_bombdroptime 30.000000 // how much time rush cts, when bomb is dropped
amx_antirusher_rules 1 // chat command /rules on/off (default on)
BUGS:
"FIXED" 1- Random text in chat:
!!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! * it's so random
* You can rush after% .0f seconds * The Timer doesn't work
Note that both can be found in the lang .text, the first one is AR_INFO_WARN = /Second :AR_INFO_CLIENT
"FIXED" 2- I Also get this in chat but only admins can see it :
ML_NOTFOUND: AR_INFO_WARN
ML_NOTFOUND: AR_INFO_CLIE
3-If you touche the corner where two zones meet you'll be pushed back and forward,and some time a good push can send youu to the other side
REQUESTS: Ranked from most to least important:
1- Change how the block works,make it like a normal invisble wall that just stops you(like walkguard's),this one pushes you back a little
Code:
case 7:{
new Float: velocity[3]
new Float: DW //Długosc wektora
entity_get_vector(id,EV_VEC_velocity,velocity)
DW=vector_length ( velocity )+0.0001
velocity[0]=(velocity[0]/DW)*(-500.0)
velocity[1]=(velocity[1]/DW)*(-500.0)
if(velocity[2]<0) velocity[2]=velocity[2]*(-1.0)+15.0 //wyrzuca do gory
entity_set_vector(id,EV_VEC_velocity,velocity)
}
i think this is what needs to be changed,NO idaa how tho
2-I use amx_antirusher_action 7 (block) i want a message with a timer to be printed for the player that touches or is too close to the zone : You can't rush yet : x:yy left (i think the other tried to do it but it caused the above bugs,fix please
)
3-Always print a message in chat if the Antirush is off with the reason: [Antirush[OFF]: 1- block time is over // 2- bomb is palnted/down(say that it's on again if theynpick up the bomb again) // 3-not enough players,i also want this at the start of each round if it's on : [Antirush[ON]: Cts cannot rush for X seconds
Thank you for reading and hopefully someone will help
Greetings
Edit: I found
this dead post and
this guy should be the author,credit