• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Make item unequipable?

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hey,

I need some help on making an item unequipable.

I tried this
Code:
function onDeEquip(cid, item, slot)
	doPlayerSendCancel(cid,'You can\'t move this item.')
	return false
end

but it doesn't work.

Thanks in advance,
unknown666
 
Code:
function onDeEquip(cid, item, slot)
	if getPlayerSlotItem(cid,CONST_SLOT_RING) == 105 then
		doPlayerSendCancel(cid,'You can\'t move this item.')
		return false
	end
	return true
end

tried this, doesn't work either.
 
Back
Top