Sentinel3
New Member
- Joined
- Oct 16, 2014
- Messages
- 180
- Reaction score
- 0
Hi everyone,
I was trying to add skulls to god players
Can someone tell me what's wrong with this script? Becouse I can't login in my server. And no errors in console.
Using: Lastest TFS version (1.0)
/data/creaturescript.xml
/data/creaturescripts/scripts/others/greenskull.lua
I was trying to add skulls to god players
Can someone tell me what's wrong with this script? Becouse I can't login in my server. And no errors in console.
Using: Lastest TFS version (1.0)
/data/creaturescript.xml
HTML:
<event type="login" name="GodSkull" script="others/greenskull.lua"/>
/data/creaturescripts/scripts/others/greenskull.lua
HTML:
function onLogin(cid)
local player = Player(cid)
if player:getGroup():getId(5) then -- id xx for God
player:setSkull(SKULL_GREEN)
else
player:sendCancelMessage("Nothing") -- replace text for which message you want
end
end