How can I get this:
if user.bOperator == nil then
to comply to not only op's, but vip's and registered users as well?
if user.iProfile ~= -1 then
plop
tnx plop :) but I'm still confused
if user.bOperator == nil then --return true if userlevel are user, reg or vip?
if user.iProfile ~= -1 then --return true if userlevel is reg, vip, op or master?
Please correct me if I'm wrong
what does the -1 do?
what I need is --return true if userlevel are user and return false if reg, vip, op and master
Will this do it?
if user.iProfile == 4 then
user.bOperator -- returns nil when the user has no key.
user.iProfile -- returns the level number from the user.
0 - master
1 - operator
2 - VIP
3 - reg user
-1 - unreg user
this makes.
if user.iProfile ~= -1 then -- return true if the user is everything except a unreg user.
if user.iProfile == 4 then -- this is the 1st non default profile/level you add to ptokax.
plop