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

  • Curator
imthenewguy

Posted

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

  • Curator
imthenewguy

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.7k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.