function Admin(ID: byte): boolean;
var txt,ip: string;
begin
txt := ReadFile('remote.txt');
ip := GetPlayerStat(ID,'ip');
Result := Maskcheck(txt,ip);
Case result of
True: Writeconsole(0,'True',$000000);
False: Writeconsole(0,'False',$000000);
end;
end;
procedure OnJoinGame(ID, Team: byte);
begin
If Admin(ID) = true then begin
WriteConsole(0,'Admin, Your ip is ' + getplayerstat(id,'ip'),$00FFFF);
end else begin
WriteConsole(0,'Ip is ' + getplayerstat(id,'ip'),$00FFFF);
end;
end;
func Admin checks if ID's IP is on remotelist or not, somewhy it always results False, help?