Jump to content

Check OwnerID instead of Auth() when MeeleHit?

Closed 1.0.15

RuGRustServer
RuGRustServer

Posted

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

imthenewguy

Posted

Ive added a config option to prevent admin deployed entities from being destroyed by non admins.

  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.