televolt
Member
- Joined
- Jun 21, 2010
- Messages
- 153
- Reaction score
- 9
Problem solved ^^
this script checks what weapon is equiped on right hand and will block attacks..
otx 2.7 or tfs 0.3.7
this script checks what weapon is equiped on right hand and will block attacks..
otx 2.7 or tfs 0.3.7
Code:
function onTarget(cid, target)
if getPlayerSlotItem(cid, 5).itemid > 0 then
local v = getPlayerSlotItem(cid, 5)
if getPlayerVocation(cid) ~= 9 and getItemWeaponType(v.uid) == 1 then
doPlayerSendCancel(cid, "You can't attack while you're wielding two swords.")
return false
end
end
return true
end
Last edited: