Code: Select all
-- func: runspeed
-- desc: Sets the **players** movement speed, and is speed limited.
-- This Command will not let you run as fast as the GM speed command.
-- author: **unknown-DSP** Modded ver of Speed command by LordAxion.
----------------------------------------------------------------------------------------------
-----
cmdprops =
{
permission = 0,
parameters = "i"
};
function onTrigger(player, speed)
if (speed >150) then
speed = 150;
player:PrintToPlayer("Max speed is 150, your speed is reset to 150");
elseif (speed <40) then
speed = 40;
player:PrintToPlayer("Min speed is 40, your speed is reset to 40");
end
player:speed( speed );
end