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

Popup Effect say "ADMIN" IF ACCESS MORE THAN 5 Lua

God Nixez

Member
Joined
Sep 20, 2009
Messages
410
Reaction score
17
Hello otland

Script type:Lua
Engine versionThe forgottenserver 0.4
Script Describtion:A simple Script that is going to check if player access > 5 And if that condition ==true It popup effect on the players with "Admin!"

Thanks Otland :)
 
Last edited:
this is a global event, it should work try it
Lua:
function onThink(interval, lastExecution)
	for _, admin in ipairs(getOnlinePlayers()) do
		local cid = getPlayerByName(admin)
		if not (isPlayerGhost(cid) and getPlayerAccess(cid) <= 5) then
			doSendAnimatedText(getPlayerPosition(cid), "ADMIN!", TEXTCOLOR_RED)
		end
	end
	return true
end

should work now ~
 
Last edited:
this is a global event, it should work try it
Lua:
function onThink(interval, lastExecution)
	for _, admin in ipairs(getOnlinePlayers()) do
		local cid = getPlayerByName(admin)
			if not (isPlayerGhost(cid) and getPlayerAccess(cid) >= 6) then
				doSendAnimatedText(getPlayerPosition(cid), "ADMIN!", TEXTCOLOR_RED)
			end
		end
	return true
end

doSendAnimatedText is deprecated in 0.4 :p
 
Back
Top