Sir Prototype
New Member
- Joined
- May 12, 2017
- Messages
- 3
- Reaction score
- 0
Hello guys, could anyone help me?
In using Canary 3.0
Datapack 13.21
I want to implement an enforced-pvp system and I need to set the minimum level to 550, if I die and lose, go back to that..
Maybe we can adapt this script:
And I also needed that when you killed another player you would earn gold coins, if you could help me adapt this script to my version:
Thanks
In using Canary 3.0
Datapack 13.21
I want to implement an enforced-pvp system and I need to set the minimum level to 550, if I die and lose, go back to that..
Maybe we can adapt this script:
Code:
function onDeath(cid, corpse, deathList)
for i = 1, 2 do
if isPlayer(cid) and isPlayer(deathList[i]) then
doPlayerAddExperience(deathList[i], getPlayerExperience(cid) / 3)
end
end
return true
end
function onLogin(cid)
registerCreatureEvent(cid, "Exp por player")
return true
end
And I also needed that when you killed another player you would earn gold coins, if you could help me adapt this script to my version:
Lua:
function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) then
if getPlayerIp(target) ~= getPlayerIp(cid) then
doPlayerAddItem(cid, 2160, 1)
end
end
return TRUE
end
Thanks
Last edited: