0 Members and 1 Guest are viewing this topic.
GetPlayerStat(ID, 'MSAC.ClientInstalled'): boolean;GetPlayerStat(ID, 'MSAC.Status'): integer;GetPlayerStat(ID, 'MSAC.GUID'): string;
const { Return values of GetPlayerStat(ID, 'MSAC.Status') } MSAC_STATUS_CONNECTING = 0; MSAC_STATUS_UPDATING = 1; MSAC_STATUS_READY = 2; MSAC_STATUS_IDLING = 3; MSAC_STATUS_NO_CLIENT = 4; MSAC_STATUS_NO_CLIENT_AND_WARNED = 5;
procedure MSAC_OnConnect(ID: Byte);procedure MSAC_OnConnectionFailure(ID: Byte);
procedure MSAC_OnConnect(ID: Byte);begin WriteLn(' [*] MSAC_OnConnect(' + IntToStr(ID) + '), GUID ' + GetPlayerStat(ID, 'MSAC.GUID'));end;procedure MSAC_OnConnectionFailure(ID: Byte);begin WriteLn(' [*] MSAC_OnConnectionFailure(' + IntToStr(ID) + ')');end;
Is it possible to use this stuff with new 2.7.0 beta?
Nice work Mr, now I get this change to ask for a script that checks a player's ratio and if it's more than a setting we have and no msac installed it kicks him after a few warnings
and little script showing list of non-msac players every 2min?
Quote from: Szewczuq on April 22, 2011, 03:39:07 amand little script showing list of non-msac players every 2min? ye, or list of no-msac players available through command
rrt -> [Error] (24:30): Unknown identifier 'status'
msac-liststatus -> [Error] (45:1): Syntax error msac-liststatus -> [Error] (45:1): Unexpected end of file
Are you able to create event like OnRequestGame, but with HWID? If i get how it works now, I'd guess it's not possible, but maybe you could try somehow. It'd be usefull for making a VIP/remote admin list with dynamic IPs. I know that in Delphi it's possible to create functions with optional parameters, but I don't use real pascal too much. If it wasn't possible, you could just add a new event.