popitox
Member
- Joined
- Jul 8, 2008
- Messages
- 63
- Reaction score
- 8
i had a problem with this script if player atack the summon it gets pk, but if owner atack it take it too is there any way to owner dont get skull?
local stime = 5 -- tempo de pk (minutos)
local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, stime * 60 * 1000)
function onAttack(cid, target)
if getCreatureSkullType(cid) < 3 and isPlayer(getCreatureMaster(target)) then
doCreatureSetSkullType(cid, SKULL_WHITE)
doAddCondition(cid, condition_infight)
doPlayerSetPzLocked(cid, true)
end
return true
end
local stime = 5 -- tempo de pk (minutos)
local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, stime * 60 * 1000)
function onAttack(cid, target)
if getCreatureSkullType(cid) < 3 and isPlayer(getCreatureMaster(target)) then
doCreatureSetSkullType(cid, SKULL_WHITE)
doAddCondition(cid, condition_infight)
doPlayerSetPzLocked(cid, true)
end
return true
end