Jump to content

Check OwnerID instead of Auth() when MeeleHit?

Closed 1.0.15

Hi,

i am (ab)using your plugin to create cool jumping puzzles each month (including a foot-race with RaceTrack-Plugin :D)

My problem is, that these objects are not covered by a cupboard, so basically anyone can destroy them with a melee weapon. The "authDmgOnly"-Flag is not working without a cupboard.

So i add a simple line in your corde, whenever there is an update and i hope you might add this one in code & config:

void OnMeleeAttack(BasePlayer player, HitInfo info)
....
....
//checks for owner, except the player is admin
if ((ri.ownerID != player.userID) && !player.IsAdmin) return;

This line just adds another check, if the player is owner of the object. Admins can still bypass.

Is that possible to add?

 

Unbenannt.PNG

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.