SteamDenyEvent

Nov 21, 2015
SteamDenyEvent
  • Methods:
    Code (C#):
     
    Properties:
    Code (C#):
    Approval:NetworkPlayerApproval
    ClientConnection:ClientConnection
    ErrorNumber:NetError
    ForceAllow:bool
    NetUser:NetUser
    Reason:string
    Example:

    Python:


    Code (Python):

    import clr
    clr.AddReferenceByPartialName("Fougerite")
    import Fougerite


    class SteamDeny:
        def On_SteamDeny(self, SteamDenyEvent):
            if str(SteamDenyEvent.ErrorNumber) == "Facepunch_Connector_Cancelled":
                SteamDenyEvent.ForceAllow = True
     
    Javascript:

    Code (Javascript):

    function On_SteamDeny(SteamDenyEvent) {
       if (SteamDenyEvent.ErrorNumber == "Facepunch_Connector_Cancelled"){
                SteamDenyEvent.ForceAllow = True;
       }
    }