0 Members and 1 Guest are viewing this topic.
procedure OnPlayerSpeak(Id: byte; Text: string);var i: byte;begin if (Text='!1') or (Text='!red') then begin Command('/setteam1 '+inttostr(ID)); end; if (Text='!2') or (Text='!blue') then begin Command('/setteam2 '+inttostr(ID)); end; if (Text='!5') or (Text='!spec') then begin Command('/setteam5 '+inttostr(ID)); end; if (Text = '!nextmap') then begin WriteConsole(ID,'Next map will be: '+NextMap,Color); WriteConsole(ID,'Use (!m or !v) to vote.', Color); end; if (Text='!map') then begin WriteConsole(ID,'Current map is: '+CurrentMap, Color); end; if (Text='!time') then begin WriteConsole(ID,'Current server time is: '+FormatDate('hh:nn:ss')+' (GTM+1)'+' Date is: 'FormatDate(dd-mm-yyyy), Color); end;
if MaskCheck(lowercase(Text),'!<result>') then beginend;
function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if LowerCase(Text) = '/red' then Command('/setteam1 ' + IntToStr(ID)); if LowerCase(Text) = '/blue' then Command('/setteam2 ' + IntToStr(ID)); if LowerCase(Text) = '/spec' then Command('/setteam5 ' + IntToStr(ID)); end;end;
if (Text='!time') then begin WriteConsole(ID,'Current server time is: '+FormatDate('hh:nn:ss')+' (GTM+1)'+' Date is: 'FormatDate(dd-mm-yyyy), Color);end;
constcolor = $FFFF00;procedure OnPlayerSpeak(ID: Byte; Text: string);beginif (Text='!time') then begin WriteConsole(ID,'Current server time is: '+FormatDate('hh:nn:ss')+' (GTM+1)'+' Date is: '+FormatDate('dd-mm-yyyy'), Color); end;end;
Script Name: PublicToolsScript version: 1.0.0Release Date: 19th of March 2013Core Version: v2.6.0
constColor = $4efffc;White = $ffffff;Red = $FFFF4444;VotePerc = 65;VoteTime = 30;AddTime = 8;varVoted: array [1..32] of boolean;kills: array [1..32] of byte;