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

Request Show Vip Days in whoisonline

tyngaste

New Member
Joined
Dec 2, 2008
Messages
223
Reaction score
0
Location
Sweden
hello i wonder if anyone out there could do so it shows remaining vip days after name in who is online would be great.


thanks in advance
 
How does your VIP system works, i can help you :D

my vip system works like this, free premium = no vip, premium days = vip i use premium days to get vip status :)
example buy 14 days of vip and it will add 14 days to premium days but it shows on website vip status when you got days, i want the remaining days and vip account to show in whoisonline, like this example: Tyngaste - (* Vip Account * - 15 days remaining)

thanks in advance
 
Last edited:
In your online-script change
Code:
strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"

to
Code:
strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "][" .. getPlayerPremiumDays(pid) .. "]"

This will show something like this -> 15:16 Darkhaos[100][30], Elite Kox[95][27].

name - level - premium days.
Darkhaos[100][30]
 
In your online-script change
Code:
strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"

to
Code:
strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "][" .. getPlayerPremiumDays(pid) .. "]"

This will show something like this -> 15:16 Darkhaos[100][30], Elite Kox[95][27].

name - level - premium days.
Darkhaos[100][30]

thanks but i need it to show like above would be easier to understand and such for these dont know its like that would be glad if someone could keep working on it and do as i wanted.

thanks in advance
 
Then...

After
Code:
if((config.showGamemasters == TRUE or getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == TRUE or getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) ~= TRUE) and (isPlayerGhost(pid) ~= TRUE or getPlayerAccess(cid) >= getPlayerAccess(pid))) then

Add
Code:
if getPlayerPremiumDays(pid) > 0 then
	strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "] (*Vip Account* - " .. getPlayerPremiumDays(pid) .. " days remaining)"
	i = i + 1
	added = TRUE
else
	strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
	i = i + 1
	added = TRUE
end
 
Then...

After
Code:
if((config.showGamemasters == TRUE or getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == TRUE or getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) ~= TRUE) and (isPlayerGhost(pid) ~= TRUE or getPlayerAccess(cid) >= getPlayerAccess(pid))) then

Add
Code:
if getPlayerPremiumDays(pid) > 0 then
	strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "] (*Vip Account* - " .. getPlayerPremiumDays(pid) .. " days remaining)"
	i = i + 1
	added = TRUE
else
	strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
	i = i + 1
	added = TRUE
end

thanks alot :) cant add rep dunno why :S ..
 
Back
Top