Difference between revisions of "TOnRequestEvent"

From Soldat Community Wiki
Jump to: navigation, search
m (Declaration)
(Declaration: 2.7.8.b1 declaration change)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Inheritance==
 
*[[TOnRequestEvent]]
 
 
 
==Description==
 
==Description==
Class used in [[TGame.OnRequest]] as an event handler type.
+
Type used by [[TGame.OnRequest]] as an event handler type.
 
 
user constructable: '''NO'''
 
user destructable:  '''NO'''
 
  
 
==Declaration==
 
==Declaration==
   function (Ip: string; Port: Word; State: Byte; Forwarded: Boolean; Password: string): Integer;
+
   function (Ip, Hw: string; Port: Word; State: Byte; Forwarded: Boolean; Password: string): Integer
 
   Ip: Player IP
 
   Ip: Player IP
 +
  Hw: Player HWID
 
   Port: Player Port
 
   Port: Player Port
 
   State: Current request state
 
   State: Current request state
Line 36: Line 31:
  
  
[[Category:Classes]]
+
[[Category:Types]]

Latest revision as of 10:34, 4 October 2014

Description

Type used by TGame.OnRequest as an event handler type.

Declaration

 function (Ip, Hw: string; Port: Word; State: Byte; Forwarded: Boolean; Password: string): Integer
  Ip: Player IP
  Hw: Player HWID
  Port: Player Port
  State: Current request state
  Forwarded: True if player has been redirected from another server
  Password: Password that a player entered
  Result: Final request state
State Value Description
1 OK
2 Wrong Soldat version
3 Wrong password
4 Banned
5 Server full
6 Duplicate IP