OnCupboardDeauthorize
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnCupboardDeauthorize( VehiclePrivilege instance, BasePlayer player )
{
Puts( "OnCupboardDeauthorize works!" );
}
Location
- VehiclePrivilege::RemoveSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
}
if (!this.IsDriver(rpc.player))
{
return;
}
if (Interface.CallHook("OnCupboardDeauthorize", this, rpc2.player) != null)
{
return;
}
this.authorizedPlayers.RemoveAll((PlayerNameID x) => x.userid == rpc.player.userID);
BasePlayer arg_B1_1 = rpc.player;
//---