• 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!

Addon on click

Collz

Pandas Go RAWR!!!
Joined
Oct 10, 2008
Messages
2,091
Reaction score
58
Location
New York
I'm in need of a script that if you click a rock, it gives you an addon and text pops up.

Example:
Congratulations |PLAYERNAME| You have received the Hunter Addons.

Thanks In Advance,
Collz.
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not canPlayerWearOutfitId(cid, 2, 3) then
		doPlayerAddOutfitId(cid, 2, 3)
		doCreatureSay(cid, 'Congratulations, ' .. getCreatureName(cid) .. '! You have received the Hunter Addons.', TALKTYPE_ORANGE_1)
		return true
	end
end
 
Back
Top