0 Members and 3 Guests are viewing this topic.
const OnGravChangeNotice = true; // set to true to display a message to all players when gravity has changed Color = $FFFFFF; // color of the messagefunction OnCommand(ID: byte; Text: string): boolean;var g: integer;begin result := false; if (RegExpMatch('^/(g|grav|gravity) (-?\d+)', lowercase(Text))) then begin g := strtoint(GetPiece(Text, ' ', 1)); ServerModifier('Gravity', g * 0.0006); if OnGravChangeNotice then WriteConsole(0, 'Gravity changed to ' + inttostr(g) + '%', Color); exit; end;end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
download link?
Though, i think there is already one.
Ok so where's the part who say that there is only for admin ?
procedure ActivateServer();begin Command('/g 60');end;