IOnCupboardAuthorize
WARNING
This is an internal hook and will not be called in plugins. See Internal Hooks for more information.
Usage
- Return a non-null value or bool to override default behavior
Example Autogenerated
csharp
private void IOnCupboardAuthorize( ulong num, BasePlayer player, BuildingPrivlidge instance )
{
Puts( "IOnCupboardAuthorize works!" );
}
Location
- BuildingPrivlidge::AddAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
if (!this.CanAdministrate(rpc.player))
{
return;
}
ulong num = rpc.read.UInt64();
if (Interface.CallHook("IOnCupboardAuthorize", num, rpc.player, this) != null)
{
return;
}
this.AddPlayer(rpc.player, num);
base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
//---