Loremaster7
New Member
- Joined
- Oct 16, 2017
- Messages
- 29
- Reaction score
- 4
When the player clicks on the box, he will lose blood and have 1 hp ...
Help!!!
**************
Script:
function onUse(cid, item, frompos, item2, topos)
msg = "Die!"
posplayer = getPlayerPosition(cid)
hit = math.random(50,150)
doPlayerSendTextMessage(cid, 22, msg)
if item.uid == 65457 then
doPlayerAddHealth(cid,-hit)
doSendMagicEffect(topos,12)
doSendMagicEffect(posplayer,13)
end
return 1
end
*************
My Server : OTX 7.72
Help!!!
**************
Script:
function onUse(cid, item, frompos, item2, topos)
msg = "Die!"
posplayer = getPlayerPosition(cid)
hit = math.random(50,150)
doPlayerSendTextMessage(cid, 22, msg)
if item.uid == 65457 then
doPlayerAddHealth(cid,-hit)
doSendMagicEffect(topos,12)
doSendMagicEffect(posplayer,13)
end
return 1
end
*************
My Server : OTX 7.72
Last edited: