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

Lua NPC Premium

Kayan

Active Member
Joined
Sep 19, 2007
Messages
1,561
Reaction score
38
Location
Santa Catarina
Hello all, I'm make a npc speak only with premium accounts, i need help whats function i need use;
Code:
if getPlayerPremiumDays(cid) > 0

our

if isPremium(cid) == 1 then

what's is correct?

see example

PHP:
if 	msgcontains(msg, 'Msg') then 
	if isPremium(cid) == 1 then 
selfSay('blablablabla!') 
				talk_state = 1
			else	
				selfSay('you need premium account') 
				talk_state = 0 
			end
 
Use whatever you feel like, both will work in the same way, isPremium does exactly the same, the only difference is how you write it.
 
Back
Top