Server admin name change - Cubescripting
#2
so basically, you want it to detect which player has admin?
Without testing it, this will probably do the trick:
alias findadmin [
loop i 21 [
if (= (currole $i) 1) [alias adminname (findpn $i)] []
]]
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:
add2conloop [
if_conline_has " claimed admin status" [alias adminname (at $conline 0)] []
]
But if you join a server where someone already has admin, it won't store their name.
Thanks given by:


Messages In This Thread
RE: Server admin name change - Cubescripting - by V-Man - 23 Dec 10, 06:54PM