Adicione isto em banstaff.lua na pasta data/actions/scripts
NOTE: Essa runa eh desenvolvida para YurOTS 0.9.2 talvez funcione em mais ots(talvez)
-- Version 1.3 - by Heliton upgrade by xbowaxx--function onUse(cid, item, frompos, item2, topos)
playeraccess = getPlayerAccess(cid)
playername = getPlayerName(item2.uid)
player2access = getPlayerAccess(item2.uid)
if playeraccess >= 1 and item2.itemid == cid then
if player2access == 0 then
doPlayerSay(cid,'/B O jogador '..playername..' foi banido por desrespeitar as regras do server.',23)
doPlayerSay(cid,'/b '..playername..'',1)
else
doPlayerSendCancel(cid,"You cannot ban this player.")
end
else
return 0
end
return 1
end
Em actions.xml adicione:
<action itemid="3259" script="banstaff.lua" allowfaruse="1" blockwalls="0" />
Vc tem q dar use na enchanted staff e clicar no player...!
Duvidas?? POSTEM QUE EU AJUDO(PELO MENOS TENTO feliz.gif)