Jump to content

Add a hook for purchase or check for TC auth

Pending 1.8.7

VENIQQ
VENIQQ

Posted

@ThePitereq Would it be a huge effort to add a hook before tank is purchased or purchase initiated? So other plugins could use it to check if some conditions are met - and if not - prevent the purchase. For example if user is TC authed.

Or alternatively add that as a config option in the plugin itself - prevent any purcahses if not in TC auth zone.

Quote

if (player.GetBuildingPrivilege()?.IsAuthed(player) != true) return;  // or something like that


My reasoning is that players exploit monuments for taking extra-hard tanks - so they are not hit by mlrs or by a tank and can shoot it relatively easy

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.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.6k
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.