Raised This Month: $ Target: $400
 0% 

Grenade Spam Punish


Post New Thread Reply   
 
Thread Tools Display Modes
DaSoul
Senior Member
Join Date: Jan 2006
Old 08-12-2006 , 12:43   Re: Grenade Spam Punish
Reply With Quote #31

I made the changes you requested because they did make sense. Although on my system everything appeard to be working fine.

I took out the cstrike reference. I did not add csx and it still works fine. So I don't believe you need it. Unless the new amxmodx just added it automatically.

Took out the cfg execs.

I fixed the round start.

Switched to a switch statement

Took out the pcvar assignments and just used them directly.

Fixed the set_hudmessage which also worked fine.

Quote:
Originally Posted by vittu
Couple of things,

What broke your plugin was:
  • You removed the csx include which is needed for the grenade_throw forward. You're not even using cstike so you can remove the need to include it.
  • When you changed from the ResetHUD event to using the Round_Start logevent. Round start doesn't pass an id. So the nade counts never get reset to 0 for any of the clients. (resethud was fine, doesn't even really need the delay)
    Code:
    register_logevent("funcNewRound", 2, "1=Round_Start") public funcNewRound(id) {

This should not be in the code, those will be run by amxmodx itself at the appropriate times (then you can remove the need to include amxmisc):
Code:
  new configsdir[128]   get_configsdir(configsdir, 127)   server_cmd("exec %s/amxx.cfg", configsdir)     new currmap[128]   get_mapname(currmap,127)   server_cmd("exec %s/maps/%s.cfg",configsdir, currmap)

When using pcvars you don't need to set them to global varibles like below. That is almost basically what you are already doing by using pcvars.
Code:
  limitFlash = get_pcvar_num(p_grenspampunish_maxflash)   limitHE = get_pcvar_num(p_grenspampunish_maxhe)   limitSmoke = get_pcvar_num(p_grenspampunish_maxsmoke)

And it would be better to use a switch statement for this instead:
Code:
  if ( wId==CSW_HEGRENADE ){     copy(greName,31,"HE Grenades")     punishlevel = limitHE     grencountindex = 0   }   else if ( wId==CSW_SMOKEGRENADE ){     copy(greName,31,"Smoke Grenades")     punishlevel = limitSmoke     grencountindex = 1   }   else if ( wId==CSW_FLASHBANG ){     copy(greName,31,"Flash Grenades")     punishlevel = limitFlash     grencountindex = 2   }

Also, you don't have enough parameters for your set_hudmessage:
Code:
set_hudmessage(255 ,0 ,0 ,-1.0 ,0.32 ,0 ,6.0 ,10.0 )



I'm gonna try using this with the fixes until Brad fixes the issues with the Grenade Control plugin and rebuy.
__________________

Last edited by DaSoul; 08-12-2006 at 13:16.
DaSoul is offline
Silver Dragon
Veteran Member
Join Date: Jan 2005
Location: Chicago, Illinois
Old 08-20-2006 , 12:16   Re: Grenade Spam Punish
Reply With Quote #32

Would you make it so instead of slaying them ,or doing damage. It automatically just bans them for like 60 minutes, and if they come back doing it they get banned permanetly.

Also make it compatable with AMXbans.

These are just suggestions to the plugin.
__________________

Silver Dragon is offline
Send a message via AIM to Silver Dragon Send a message via MSN to Silver Dragon Send a message via Yahoo to Silver Dragon
DaSoul
Senior Member
Join Date: Jan 2006
Old 09-28-2006 , 15:48   Re: Grenade Spam Punish
Reply With Quote #33

I prefer not to ban people. They learn quickly enough that grenade spamming on the server is not permitted.

But if I get some free time I might try to implement this... but seems to me it will just make it more complicated.

I try to stick with the K.I.S.S. system.
__________________
DaSoul is offline
vlad2006
New Member
Join Date: Sep 2006
Old 10-04-2006 , 14:19   Re: Grenade Spam Punish
Reply With Quote #34

I love it! The only problem is that it crashed the server down after the first punishement was issued.
vlad2006 is offline
DaSoul
Senior Member
Join Date: Jan 2006
Old 10-04-2006 , 17:51   Re: Grenade Spam Punish
Reply With Quote #35

Quote:
Originally Posted by vlad2006 View Post
I love it! The only problem is that it crashed the server down after the first punishement was issued.
What version of amxmodx are you running and also what was in your log file error wise?
__________________
DaSoul is offline
vlad2006
New Member
Join Date: Sep 2006
Old 10-04-2006 , 20:08   Re: Grenade Spam Punish
Reply With Quote #36

Im running amxmodx 1.76a on linux dedicated server, and this is the message im getting in my error log.
Code:
 
L 10/04/2006 - 13:13:59: [AMXX] Run time error 10 (plugin "admin_slash.amxx") (native "client_print") - debug not enabled!
L 10/04/2006 - 13:13:59: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/04/2006 - 13:15:42: Invalid player id 25
this is what I get in console:
Code:
-[.CaF.]-Bleed (RADIO): Fire in the hole!
You have exceeded the maximum number of HE Grenades that you can throw.
You are only allowed 1 HE Grenades per round.
-[.CaF.]-Bleed (RADIO): Fire in the hole!
You have exceeded the maximum number of HE Grenades that you can throw.
] kill 
You are only allowed 1 HE Grenades per round.
-[.CaF.]-Bleed (RADIO): Fire in the hole!
] kill
You have exceeded the maximum number of HE Grenades that you can throw.
You are only allowed 1 HE Grenades
I`ve noticed when the server has 20-24 players on it, I need to buy 2nd he grenade, and soon as I throw the 2nd one server crashes. If I`m alone on the server, I have to repeat buying he nades for like 10-15 times, and then server crashes.
vlad2006 is offline
DaSoul
Senior Member
Join Date: Jan 2006
Old 10-04-2006 , 20:27   Re: Grenade Spam Punish
Reply With Quote #37

I will see if I can check it out. I am running it fine right now on my systems.

It appears your have an error in one of your plugins. It may not actually be my plugin crashing the server but might have to do with some other strange events. I see no reason that it would crash after you do it 15 or 20 times.

I don't know when I will get to it. But if I cant get to it in the next couple days I will certainly try to run some tests on it this weekend.

What does your config settings look like for the plugin?
__________________
DaSoul is offline
vlad2006
New Member
Join Date: Sep 2006
Old 10-05-2006 , 11:08   Re: Grenade Spam Punish
Reply With Quote #38

Yea, it is kinda "weird". I know I have an issue with admin_slash.amxx, but it was running pretty fine for last 6 months so I just didnt wanna do anything about it, but that may change today lol.

This is my config for grenade spam punish, which are also part of my server cfg

Code:
mp_grenspampunish 1
mp_grenspampunish_maxflash 2
mp_grenspampunish_maxhe 1
mp_grenspampunish_maxsmoke 0
mp_grenspampunish_damage 99
and this are currently loaded plugins:
Code:
Currently loaded plugins:
name               version  author            file             status   
Admin Base         1.76     AMXX Dev Team     admin.amxx       running  
Admin Commands     1.76     AMXX Dev Team     admincmd.amxx    running  
Admin Help         1.76     AMXX Dev Team     adminhelp.amxx   running  
Menus Front-End    1.76     AMXX Dev Team     menufront.amxx   running  
Commands Menu      1.76     AMXX Dev Team     cmdmenu.amxx     running  
Players Menu       1.76     AMXX Dev Team     plmenu.amxx      running  
Teleport Menu      1.76     AMXX Dev Team     telemenu.amxx    running  
Maps Menu          1.76a    AMXX Dev Team     mapsmenu.amxx    running  
Admin Chat         1.76     AMXX Dev Team     adminchat.amxx   running  
Anti Flood         1.76     AMXX Dev Team     antiflood.amxx   running  
Scrolling Message  1.76     AMXX Dev Team     scrollmsg.amxx   running  
Info. Messages     1.76     AMXX Dev Team     imessage.amxx    running  
Admin Votes        1.76     AMXX Dev Team     adminvote.amxx   running  
Pause Plugins      1.76     AMXX Dev Team     pausecfg.amxx    running  
Stats Configurati  1.76     AMXX Dev Team     statscfg.amxx    running  
Restrict Weapons   1.76     AMXX Dev Team     restmenu.amxx    running  
StatsX             1.76a    AMXX Dev Team     statsx.amxx      running  
CS Misc. Stats     1.76a    AMXX Dev Team     miscstats.amxx   running  
CS Stats Logging   1.76     AMXX Dev Team     stats_logging.a  running  
Amx_Super All-In-  2.0      bmann_420/AMX(x)  amx_super.amxx   running
Admin Slash        1.1      mike_cao          admin_slash.amx  running  
CS Stats Logging   1.76     AMXX Dev Team     stats_logging.a  running  
AWP Kick           0.1      [Coder]Someone    awp_kick.amxx    running  
AMX Spank2         0.9.4    [email protected]  amx_spank2.amxx  running  
Info_motd_ig       0.2      Solor             info_motd_ig.am  running  
Admin Spectator E  1.3      KoST              admin_spec_esp.  running  
Shake It baby!     1.0      ThantiK           amx_shake.amxx   running  
OOB Zone Protecto  1.02     xeroblood         oob_protector.a  running  
OOB Zone Builder   1.02     xeroblood         oob_builder.amx  running  
Spin hack Detecto  1.0.4    EKS               ac_spinhackdete  running  
Ultimate Punishme  4.8      v3x               ultimate_punish  running  
Bullet Whizz       1.4      Cheap_Suit        Bullet_Whizz.am  running  
NervousHostages    0.20     Avalanche         nervous_hostage  running  
Ammo depleted      1.0      MistaGee          ammodepl.amxx    running  
Player Wanted      1.1      Nightscream       player_wanted.a  running  
Friends Spawn Edi  0.5.16   iG_os             Friends_Spawn_e  running  
Server Rules       1.1      FullThrottle      server_rules.am  running  
Ultimate Sound     1.1      Dizzy             ultimate_sounds  running  
Auto Team Join     0.1      VEN               auto_team_join.  running  
39 plugins, 39 running
I also tryed to install it on a windows dedicated server with exact same configs, and appears to me that it works fine for now(I was not been able to crash it, even with 32 players on).
Last night, we activated the plugin again, and 24 ppl were trying to spam nades. In a matter of 5 secs, the plugin slayed us all, and we thought that finally we got it up and running, but it crased the server again after 1 minute. I disabled the plugin then, and activated a he arena, just to make sure that we can spam nades, and we could, so I really dont know, but I`ll try to see whats wrong with admin_slash plugin right now. Maybe they interfere somehow, and I`ll edit this post as soon as I do that.

Last edited by vlad2006; 10-05-2006 at 11:11.
vlad2006 is offline
DaSoul
Senior Member
Join Date: Jan 2006
Old 10-05-2006 , 12:20   Re: Grenade Spam Punish
Reply With Quote #39

So it works fine on a windows server but on a linux server you can get it to crash pretty easily?

I don't have a linux system I can test stuff out on so I doubt I will see anything that will cause it to crash. But I will see what I can do.
__________________
DaSoul is offline
polakpolak
Senior Member
Join Date: Mar 2005
Location: Montreal, Canada
Old 10-05-2006 , 19:33   Re: Grenade Spam Punish
Reply With Quote #40

My server crashes when I put a costum hp punishement.

Was this plugin updated to work with the new version of amxx?

If not can anyone do it? thanks
polakpolak is offline
Send a message via MSN to polakpolak
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:02.


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