J.Dre
Unity Games
Hey everyone!
I'm releasing another script that I've seen attempted many times within the requests section. I did thoroughly test the scripts within the requests board and none of them worked properly. I decided to give it a shot myself and guess what? It works!
How does it work? Tested on TFS 0.3.7 (Client 9.46)
This will prevent players from pushing other players while they are training on certain monsters. However, it will allow "Gods" to push players.
creaturescripts.xml
login.lua
anti-push.lua
I'm sure many of you will appreciate it.
I'm releasing another script that I've seen attempted many times within the requests section. I did thoroughly test the scripts within the requests board and none of them worked properly. I decided to give it a shot myself and guess what? It works!
How does it work? Tested on TFS 0.3.7 (Client 9.46)
This will prevent players from pushing other players while they are training on certain monsters. However, it will allow "Gods" to push players.
creaturescripts.xml
XML:
<event type="push" name="Anti-Push" event="script" value="anti-push.lua"/>
Lua:
registerCreatureEvent(cid, "Anti-Push")
Lua:
local targetList, GAMEMASTER = {"Target Dummy"}, 5
function onPush(cid, target)
if(getPlayerAccess(cid) < GAMEMASTER) then
if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()))) then
doPlayerSendCancel(cid, "You cannot move this object.")
return false
end
end
return true
end
Last edited: