andrew95434
Banned User
I need that when i look a player, if he(she) is vip, it says :
You see (NAME). He(she) is a Vip Sorcerer, etc...
please help!!!
You see (NAME). He(she) is a Vip Sorcerer, etc...
please help!!!
function onLook(cid, thing, position, lookDistance)
local VipStorage = {20001}
if isPlayer(thing.uid) then
if getPlayerStorageValue(thing.uid, VipStorage) > 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
function onLook(cid, thing, position, lookDistance)
local VipStorage = {20001}
if isPlayer(thing.uid) then
if getPlayerStorageValue(thing.uid, VipStorage) > 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
registerCreatureEvent(cid, "vipLook")
<event type="look" name="vipLook" event="script" value="vipLook.lua"/>