Ir para conteúdo

Ban Hammer


swordie123

Posts Recomendados

GOOD OT-SERVER = MUCH PLAYERS!

GET DEDICATED SERVER WITH DDOS PROTECTION UP TO 10 GB/S HERE:

banner728.gif

What is ban hammer? Ban Hammer is something i used to love in my server. Ban Hammer does not "ban" players, it punishes them with something worse than ban - they will be unable to move or logout, also they will get black skull.

Ban Hammer works by using it on people:
1.png
Ban Hammer can be used only by Gods (can be set for your own needs)
2.png
Ban hamme can be used only on players:
3.png

Ban hammer effects will lose after player has relogged or died. (after using ban hammer on player, he/she will be unable to log out for 1 minute)

Add this to actions.xml
Code:
And make new file named banhammer.lua in actions/scripts/tools
Lua Code:
You can configure it to your own needs:
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000) -- time in MS how long player will be unable to log out (60000 = 1 min)
getPlayerAccess(cid) < 5 --People who are able to use this hammer (1=player, 2=tutor etc... You can check data/XML/groups for your server)
doCreatureSetSkullType(itemEx.uid, 5) -- Skull type (SKULL_RED = 4, SKULL_BLACK = 5) You can check skull types in data/lib/constant.lua for your server.

 

GOOD OT-SERVER = MUCH PLAYERS!

GET DEDICATED SERVER WITH DDOS PROTECTION UP TO 10 GB/S HERE:

banner728.gif

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...