Jknot
Member
hi guys what i want to do is edit this script to be able for any player to use it
eace:
@down awesome job
Code:
function onSay(cid, words, param, channel)
local againHour = 2 -- How many hours until they can use it again
local speedAdd = 500 -- How much speed that should be added
local outfit = 30 -- How many minutes they're faster and has the mount outfit
if getPlayerStorageValue(cid, 13000) == 0 then
if getPlayerStorageValue(cid, 13001) <= 0 then
doSetCreatureOutfit(cid, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, outfit*60*1000)
setPlayerStorageValue(cid, 13001, 0)
addEvent(setPlayerStorageValue, againHour*60*60*1000, cid, 13001, 0)
addEvent(doChangeSpeed, outfit*60*1000, cid, -speedAdd)
doChangeSpeed(cid, speedAdd)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
else
doPlayerSendCancel(cid, "You can only use this command every 2 hours.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You haven't done the Orc Rider Quest!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end
eace:
@down awesome job
Last edited: