Jump to content
MakeWebGames

[v2]Attack Ban[v2]


Halo

Recommended Posts

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:

testgi9.png

And your done, any bugs or questions post back here!

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...