wilkerhell
;D
- Joined
- Sep 29, 2009
- Messages
- 224
- Reaction score
- 0
If player have vip add OnLook (vip).
or
I need vip system with player storage (5009).
or
I need vip system with player storage (5009).
Last edited:
<event type="look" name="Look" event="script" value="vip.lua"/>
registerCreatureEvent(cid, "Look")
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) == false then
return true
end
local storage = 5009
if getPlayerStorageValue(thing.uid, storage) == -1 then
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." isn't a vip player.")
else
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is a vip player.")
end
return true
end
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) == false then
return true
end
if isVip(getPlayerAccount(thing.uid)) == false then
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." isn't a vip player.")
else
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is a vip player.")
end
return true
end
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=10%>Vip Status:</TD>';
$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();
if($vip == false) {
$main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
}