• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

speed commants

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
is there an attr command that make ur speed fast?
 
talkactions/scripts/script.lua

Code:
local ACCESS_GAMEMASTER = 5
local p = string.explode(param, ',')

function onSay(cid, words, param, channel)
	for _, pid in ipairs(getPlayersOnline()) do
		if getPlayerAccess(cid) > ACCESS_GAMEMASTER then
			local speed = tonumber(p[2])
			if speed then
				doChangeSpeed(pid, speed)
				doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have changed" .. (pid == cid and " your" or getCreatureName(p[1])) .. " " .. pid ~= cid and "'s" or "" .. " speed to " .. speed .. ".")
			else
				return doPlayerSendCancel(cid, "Sorry, the new speed must be numerical.")
			end
		else
			return doPlayerSendCancel(cid, "Sorry, not possible.")
		end
	end
	
	return true
end
 
Last edited:
Back
Top