[Help]Quest function-player has premium

11/06/2012 15:34 xworldx#1
Helo, is possible check, that player has premium ? (gold_expirein in table account)
In game in quest.
Thank you
11/06/2012 15:55 ©by Noa#2
check only or give some premium thinks?
11/06/2012 16:03 xworldx#3
only check (true/false)

i can write quest
if pc.has_premium() then
somethink
end ....
11/06/2012 16:10 ©by Noa#4
so idunno what u want to use, only a check premium quest or use with somethink ?

PHP Code:
local premi pc.getqf("premium")
if 
premi ==1 then     -- true
    say
("when you have premium")
else                -- 
false
    say
("you have not premium")
end 
11/06/2012 16:22 xworldx#5
use, for example players with have premium can have some special quest, or can have use some special thinks
i need function, which check, has player premium or not
11/06/2012 16:28 ©by Noa#6
Use this function

if pc.get_name() with pc.getqf("premium")==1 then -- if that player name has
11/06/2012 19:42 clad3815#7
Use this :
if pc.get_premium_remain_sec(PREMIUM_EXP) > 0 then