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

Vip on look

dervin13

Active Member
Joined
Apr 26, 2008
Messages
458
Solutions
1
Reaction score
28
how to put VIP on look? i try this but dont work...

function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
if getPlayerVipDays(thing.uid) > 0 then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is VIP")
doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " is VIP.")
end
return true
end
end
 
Try
VipLook.lua
Lua:
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
	if getPlayerVipDays(thing.uid) > 0 then
	doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is VIP player.")
	doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " is VIP.")
	else
	doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " isn't VIP player.")
	doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " isn't VIP player.")
	end
end
return true
end
Login.lua
Code:
registerCreatureEvent(cid, "VipLook")
Creaturescripts.xml
Code:
<event type="look" name="VipLook" event="script" value="VipLook.lua"/>
 
Back
Top