0 Members and 1 Guest are viewing this topic.
function OnCommand(ID: Byte; Text: string): boolean;var Name: string;begin Result := false; if ID = 255 then Name := 'Server' else Name := GetPlayerStat(ID,'Name'); if Copy(Text,1,5) = '/say ' then begin Result := true; WriteConsole(0,'[' + Name + '] ' + Copy(Text,6,Length(Text)),$FF52DD52); end; if GetPiece(Text,' ',0) = '/pm' then begin Result := true; try WriteConsole(StrtoInt(GetPiece(Text,' ',1)),'[PM] [' + Name + '] ' + Copy(Text,Length(GetPiece(Text,' ',1)) + 5,Length(Text)),$FF52DD52); except end; end;end;