First of all I want to thank Talaturen for helping me with some problems
This is a script wich can change you speed to fast and change it back to normal
First you say /speed to gain maximim speed.
If you say it for the second time you gain your normal speed back.
Ok now open talkactions.xml and put this in the buttom but above </talkactions>
Now you have got that goto the scripts folder, copy one file and change the name to speeding.lua.
Open speeding.lua and delete everything inside and paste this in it.
Now press save and test it out!
Post any suggestions/bugs in this thread
This is a script wich can change you speed to fast and change it back to normal
First you say /speed to gain maximim speed.
If you say it for the second time you gain your normal speed back.
Ok now open talkactions.xml and put this in the buttom but above </talkactions>
Code:
<talkaction words="/speed" script="speeding.lua" />
Now you have got that goto the scripts folder, copy one file and change the name to speeding.lua.
Open speeding.lua and delete everything inside and paste this in it.
Code:
function getSpeed(level)
return (220 + (2 * (level - 1)))
end
function onSay(cid,words,param)
---Speed command made by Dop---
---Thanks Talaturen for helping me---
if getPlayerGroupId(cid) >= 4 and param == "" and getPlayerStorageValue(cid, 1337) == -1 then
doPlayerSendTextMessage(cid,25,'Your speed has been changed to maximum.')
doChangeSpeed(cid, (2000 - getSpeed(getPlayerLevel(cid))))
setPlayerStorageValue(cid, 1337, 1)
elseif getPlayerStorageValue(cid, 1337) ~= -1 then
doPlayerSendTextMessage(cid,25,'Your speed has been changed back to normal.')
doChangeSpeed(cid, -(2000 - getSpeed(getPlayerLevel(cid))))
setPlayerStorageValue(cid, 1337, -1)
elseif getPlayerGroupId(cid) < 4 then
doPlayerSendTextMessage(cid,21,"You cannot gain speed!")
end
end
Now press save and test it out!
Post any suggestions/bugs in this thread