so basically, you want it to detect which player has admin?
Without testing it, this will probably do the trick:
Any time you enter the command /findadmin, it stores the admin's name in adminname.
Other scripts will also need to be used to make this more efficient.
Edit: Hm, looks like currole doesn't have the extended function I thought it did. This script will not do the job, but in that case, I don't know if any will.
A partial solution will detect if anyone claims admin, using tools.cfg:
But if you join a server where someone already has admin, it won't store their name.
Without testing it, this will probably do the trick:
[SELECT ALL] Code:
alias findadmin [
loop i 21 [
if (= (currole $i) 1) [alias adminname (findpn $i)] []
]]
Other scripts will also need to be used to make this more efficient.
Edit: Hm, looks like currole doesn't have the extended function I thought it did. This script will not do the job, but in that case, I don't know if any will.
A partial solution will detect if anyone claims admin, using tools.cfg:
[SELECT ALL] Code:
add2conloop [
if_conline_has " claimed admin status" [alias adminname (at $conline 0)] []
]