==>echo(findClientbyName("Cruxeis").getBLID() $= "35041")
1
Doesn't mean you should do it.
Cause you know what else would work?
for(%x=0;%x<999999;%x++)
if(%x $= "35041" && %x $= %client.getBLID())Just because something works, doesn't mean it's efficient. Also bad practice.
Speaking of efficiency, why all the findclientbyname crap? The client is already available right there in the command.
function serverCmdSetDumpster(%cl)
{
if(%cl.isSuperAdmin)
$Pref::Server::MMDumpsterLoc = %cl.getcontrolobject().getposition();
}
function serverCmdSetArena(%cl)
{
if(%cl.isSuperAdmin)
$Pref::Server::MMArenaLoc = %cl.getcontrolobject().getposition();
}
function serverCmdSetAfterLife(%cl)
{
if(%cl.isSuperAdmin)
$Pref::Server::MMAfterlifeLoc = %cl.getcontrolobject().getposition();
}Don't want super admins to be able to change this stuff? Get better super admins.