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

Solved How to check how many blessings does a player have?

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,300
Location
Sweden?
Hello,

I wonder how can i check how many blessings a player got?

Atm this dont work :/

LUA:
for i = 1,5 do
doPlayerSendTextMessage(cid,25, "You have "..getPlayerBlessing(cid, i)..". blessings" )
end

Thanks in advance!
 
Last edited:
LUA:
amount = 0
for i = 1,5 do
	if getPlayerBlessing(cid, i) then
		amount = amount +1
	end
end
doPlayerSendTextMessage(cid,25, "You have "..amount.." blessings.")
 
Looks nice, but i noticed it spams the msg 5 times :P Any solutions for that?
 
Ups sorry, thanks Limos. Sad that i need to spreading reps around :/
 
Back
Top