Author Topic: Hugums is getting into scripting!  (Read 470 times)

Thanks to Truce I've started to get into scripting. So here's my first script, Completely useless but it is my very first.
Code: [Select]
function serverCmdAdmincheck(%client)
{
    if (!%client.isAdmin)
    {
        %status="not ";
    }
    %client.centerPrint("You are " @ %status @ "an admin.",1);
      for (%i=0;%i <clientGroup.getCount(); %i++)
     {
         %client2=ClientGroup.getobject(%i);
          if(%client2.isadmin)
          {
              messageClient(%client,'',"\c3" @ %client2.name @ "\c6 is an admin.");
          }
     }
}
You can make comments about that but thats not the main point of this topic. The main point is that i'm starting to script.

Also, Not sure if this goes here or in general modification discussion.

Also, Not sure if this goes here or in general modification discussion.
This


Also, script is completely pointless.  Make at least somewhat useful scripts while learning.

This


Also, script is completely pointless.  Make at least somewhat useful scripts while learning.
Ya i said completely useless but i'm locking.