Hey is it possible if i make a serverCmdadmins(%client) And when i do the command all admin names will popup some where?Is that possible?Not by making all names of admins in a text command and make that popup.
for(%i = 0; %i < clientGroup.getCount(); %i++){%i = %client;if(%client.isAdmin || %client.isSuperAdmin){echo(%client)}}
for(%i=0;%i<clientGroup.getCount();%i++) { %client = clientGroup.getObject(%i); if(isObject(%client)) { //do stuff here }}
where do you want them to pop up?I thinkfor(%i = 0; %i < clientGroup.getCount(); %i++){%i = %client;if(%client.isAdmin()){echo(%client)}}will work (could be wrong, been a while since I have done much with blockland or torque)replace echo with whatever you want to do to find out the list of names, might I suggest using fileobject to write it into a txt doc?
function serverCmdAdmin(%client){ for(%i=0;%i<clientGroup.getCount();%i++) { %cl = clientGroup.getObject(%i); if(%cl.isAdmin || %cl.isSuperAdmin) { %add = (%add $= "") ? %add = %cl SPC %cl.name : %add = %add @ "\n" @ %cl SPC %cl.name; } } messageBoxOk("Admins",%add);}
Clientgroup is server side.messageboxok is client side.Something needs to be changed.I think there is a commandtoclient that will do a prompt, but I do not know if it is default.
-snip- gui -snip- server sided