0 Members and 1 Guest are viewing this topic.
function OnCommand(ID: Byte; Text: string): boolean;beginif GetPiece(Text, 0) = '/disarm' then Disarm(StrToInt(GetPiece(Text, ' ', 1), StrToInt(GetPiece(Text, ' ', 2)));end;
How else will i have to use it ?!?!only /test ?!?!?
function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(Text, ' ', 0) = '/disarm' then Disarm(StrToInt(GetPiece(Text, ' ', 1), StrToInt(GetPiece(Text, ' ', 2)));end;
function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(Text, ' ', 0) = '/disarm' then begin Disarm(StrToInt(GetPiece(Text, ' ', 1)), StrToInt(GetPiece(Text, ' ', 2))); end; result := false;end;