ghettobird
LUA newbie
heya, as the title says it auto promotes players to admins, now i know this is totally useless but what if you got a test server but you don't have a database and you don't wanna waste your time? then you just put on this script so you can show the server to whoever u wanna show it to.
Code:
-- scripted by Ghettobird --
function onThink(interval, lastExecution, thinkInterval)
for _, pid in ipairs(getPlayersOnline()) do
player = getPlayerByName(pid)
if getPlayerGroupId(player) < 6 then -- this means if the player is lower than group id 6 he will be auto promoted to group id 6
doPlayerSetGroupId(player, 6) -- the group id that the player will get.
end
end
return true
end