0 Members and 1 Guest are viewing this topic.
function OnCommand(ID: Byte; Text: String);begin if (LowerCase(GetPiece(Text, ' ', 0)) = '/summon') then MovePlayer(StrToInt(GetPiece(Text, ' ', 1)), GetPlayerStat(ID, 'X'), GetPlayerStat(ID, 'Y')); if (LowerCase(GetPiece(Text, ' ', 0)) = '/appear') then MovePlayer(ID, GetPlayerStat(StrToInt(GetPiece(Text, ' ', 1)), 'X'), GetPlayerStat(StrToInt(GetPiece(Text, ' ', 1)), 'Y'));end;
function OnCommand(ID: Byte; Text: String): boolean;begin if (LowerCase(GetPiece(Text, ' ', 0)) = '/summon') then MovePlayer(StrToInt(GetPiece(Text, ' ', 1)), GetPlayerStat(ID, 'X'), GetPlayerStat(ID, 'Y')); if (LowerCase(GetPiece(Text, ' ', 0)) = '/appear') then MovePlayer(ID, GetPlayerStat(StrToInt(GetPiece(Text, ' ', 1)), 'X'), GetPlayerStat(StrToInt(GetPiece(Text, ' ', 1)), 'Y'));end;