Jump to content

Permission Request

Closed 1.2.1 1.2.3

Vergbergler

Posted

Request for permission to be able to extract rare minerals from nodes.

DAez

Posted

I dont understand you. Can you describe in more details?

Vergbergler

Posted

It looks like English is not your first language. I will speak in C# instead. 😁
Add the following code to add "permissions" to use the plugin.
 

private const string PERMISSION_USE = "extractionrareminerals.use";

void Init()
{
    // Add permissions
    permission.RegisterPermission(PERMISSION_USE, this);
}

object OnPlayerAttack(BasePlayer attacker, HitInfo info)
{
	if (permission.UserHasPermission(attacker.UserIDString, PERMISSION_USE) == false)
	{
		return; // Exit function and do not give player minerals, they do not have permission to use this plugin
	}
	// Your code down here...
}

 

DAez

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

DAez

Posted

Check next version.

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.5m

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.