Admin Commands (Request) - Mario

Author Topic: Admin Commands (Request) - Mario  (Read 2490 times)

Hey (Tis me, mariosimpson) I was wondering if some one could make a few admin commands in an addon? heres a few im thinking of

- Muteing; Being able to mute some one who is causing problems vocaly
- Prison; being able to Set a spot with a wand (Admin only of corse) that some one will spawn if you type /jail {Username} or somthing like that

Those are 2 that I can think of now, it would be nice if we could do those :) ty

-MarioSimpson

This Gos In Suggestions

These can't be made, fore
Quote
Free from Excessive "Punishment" -  A mod cannot contain any excessive administrative punishment functions such as muting, blinding, or immobilizing.  Power corrupts, and there is no need to give admins even more power.  I cannot stop you from doing this on your own server, but don't post it on the forum.

Its called kick and ban.





alright, how about killing some one? I think this would be usefull and its not on the list :)  is that alloud? (If not im just going to try to wright my own mod... )

and what if the jail was part of a RPG Mod? is that aloud to be posted?

Here:

Code: [Select]
function serverCmdSlay(%client, %victim)
{
if(%client.isSuperAdmin) {
   if(%victim $= "")
  {
      messageClient(%client, "", "\c0One or more of the required fields has been left blank.");
      return;
   }

   for(%i = 0; %i < ClientGroup.getCount(); %i++)
   {
      %cl = ClientGroup.getObject(%i);
      if(%cl.name $= %victim && isObject(%cl.player))
      {
          %cl.player.kill();
           break;
      }
}
}

alright, i may seem like a noob now, what do I do with that code? Lol

Go to Blockland/Add-ons > Right click > New > text Document > open it up > Copy & Paste code > Save as > Whatever.cs > tick in Add-ons > Start Server > Type /slay person name > Have fun.

PS I Didnt not make that code i got it from SEARCHING



what EXACTLY does it do?