Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onTarget(cid, target)
- if(attacker and isPlayer(attacker) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and getPlayerSecureMode(attacker)) then
- return false
- end
- return true
- end
- function onStatsChange(cid, attacker, type, combat, value)
- if(attacker and isPlayer(attacker) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and getPlayerSecureMode(attacker)) then
- if combat ~= COMBAT_HEALING then
- return false
- end
- end
- return true
- end
- function onCast(cid, target)
- if(attacker and isPlayer(attacker) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and getPlayerSecureMode(attacker)) then
- if combat ~= COMBAT_HEALING then
- return false
- end
- end
- return true
- end
Advertisement
Comments
-
- --talkaction
- local msg = "Now your PvP system is %s."
- function onSay(cid, words, param)
- local _table = {
- ["on"] = {"active", 1},
- ["off"] = {"disabled", 0},
- }
- if _table[param:lower()] then
- local mode = _table[param:lower()]
- setPlayerStorageValue(cid, 91821, mode[2])
- doPlayerSendTextMessage(cid, 27, msg:format(mode[1]))
- end
- return true
- end
Add Comment
Please, Sign In to add comment
Advertisement