Halo Posted April 20, 2008 Posted April 20, 2008 I HATE attack abusers, so i thought if you can Ban mail abusers why not attack abusers... How To Install: SQL QUERY You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then open staff_punit.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add above: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and open global_func.php: Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and open attack.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save that and open smenu.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally open cron_day.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Screenshot: And your done, any bugs or questions post back here! Quote
Jameoo Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] Yet Another Great Mod From This User Thank Youuuu Quote
Knuckles25 Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] Thanks I Will Use This I Hate People Attacking Admins While They Are Trying Stuff Quote
Halo Posted April 20, 2008 Author Posted April 20, 2008 Re: [v2]Attack Ban[v2] You hate people attacking admins... In attack.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then people can't attack admins... Just a little help.... Quote
Klikoka Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] or to stop attacks on all staff You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Godfather Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] does anyone have this in V1 im not to good at converting things this complex as file names dont even exist on V1 Quote
Tezza` Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] Simply use this... It's not that hard. And nice mod. Quote
danger boy Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] Nice Idea blackdragon and Great Mod but one question why would you want someone to stop attaking someone? its a great idea for stop attacking staff buut why users? Quote
zbirc3 Posted April 20, 2008 Posted April 20, 2008 Re: [v2]Attack Ban[v2] Thats a good question. But they could be continuesly not allowing that specific user to play because they are constantly harrassed via attacking. Thats why this mod is available. Atleast I think so... :| Quote
topmorpg Posted April 21, 2008 Posted April 21, 2008 Re: [v2]Attack Ban[v2] thanks for this. im trying to mod in things that people have already done with v2.. Then I will be producing some as well for others. Quote
Halo Posted April 21, 2008 Author Posted April 21, 2008 Re: [v2]Attack Ban[v2] Nice Idea blackdragon and Great Mod but one question why would you want someone to stop attaking someone? its a great idea for stop attacking staff buut why users? Really for attack abusers who really havn't done something that will make them deserve a place in fed... Quote
danger boy Posted April 21, 2008 Posted April 21, 2008 Re: [v2]Attack Ban[v2] Thats a good question. But they could be continuesly not allowing that specific user to play because they are constantly harrassed via attacking. Thats why this mod is available. Atleast I think so... :| Nice come bak :-) :wink: Quote
zbirc3 Posted April 22, 2008 Posted April 22, 2008 Re: [v2]Attack Ban[v2] I think this is correct: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Zero-Affect Posted April 22, 2008 Posted April 22, 2008 Re: [v2]Attack Ban[v2] or to stop attacks on all staff Code: else if ($odata['user_level'] > 1) { print"You cannot attack a member of Staff > Back "; $h->endpage(); exit; } Try this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i ain't tested it so might not work but yeah thats off the top of my head... since user level 5 is npc bots Quote
Halo Posted April 22, 2008 Author Posted April 22, 2008 Re: [v2]Attack Ban[v2] I think this is correct: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Lol, NPC's are their to be attacked why stop people attacking them??? Quote
Magictallguy Posted April 22, 2008 Posted April 22, 2008 Re: [v2]Attack Ban[v2] Just to be awkward. user_level 5 = Assistant... user_level 4 = NPC/IRC OP Try this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i ain't tested it so might not work but yeah thats off the top of my head... since user level 5 is npc bots Quote
Ragnar Posted April 22, 2008 Posted April 22, 2008 Re: [v2]Attack Ban[v2] A better idea would be 'Max attacks on a player per day?' Where for example, if you attack a player 10 times, when you try to attack that player an 11th time that day, you get an error message. This way it would keep every one from being able to attack a player too many times. (Of course Clan wars should be an exception to the attacking restriction!) Quote
zbirc3 Posted April 23, 2008 Posted April 23, 2008 Re: [v2]Attack Ban[v2] What I meant do do was make it so NPC's cannot be attacked UNLESS from the Battle Tent Directly! :P Quote
Halo Posted April 23, 2008 Author Posted April 23, 2008 Re: [v2]Attack Ban[v2] What I meant do do was make it so NPC's cannot be attacked UNLESS from the Battle Tent Directly! :P Yes, but in battle tent they are still attacked from attack.php, so it won't make a difference Quote
zbirc3 Posted April 23, 2008 Posted April 23, 2008 Re: [v2]Attack Ban[v2] okies :) thx 4 clearin dat up Quote
danger boy Posted April 25, 2008 Posted April 25, 2008 Re: [v2]Attack Ban[v2] A better idea would be 'Max attacks on a player per day?' Where for example, if you attack a player 10 times, when you try to attack that player an 11th time that day, you get an error message. This way it would keep every one from being able to attack a player too many times. (Of course Clan wars should be an exception to the attacking restriction!) nice idea ragnar would be great if someone can do this ( i am new to coding so i wont be able to) Quote
Strats Posted April 28, 2008 Posted April 28, 2008 Re: [v2]Attack Ban[v2] Nice work Black Dragon! Quote
curious4moreknowledge Posted May 5, 2008 Posted May 5, 2008 Re: [v2]Attack Ban[v2] Another option would be to hide the attack link for staff or NPC's in the viewuser.php script. so you would have something like this: open viewuser.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now you have eliminated the option to attack staff and NPC's on the user profiles. If you have attack shortcuts in your user list and users online scripts you will also need to add the mods to them as well. :-D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.