Author Topic: Preventing minigames  (Read 895 times)

Ok i was wondering how you prevent non admins from creating minigames. I would like to know because i dont want people cheating on my challenge server.

Copy/paste the following into a .cs file and enable it.
*Note: credit for the following goes to Aloshi who made the default minigame script, which included this admin only mini-game making package.
Code: [Select]
package MinigameAO
{
function serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e,%f,%g)
{
if(%client.issuperadmin || %client.isadmin)
{
Parent::serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e,%f,%g);
}else{
messageclient(%client,"","Sorry, you are not an admin.");
}
}
};
activatePackage(MinigameAO);
Put that into a .cs in addons, and check it's box, run your server. Only admins/superadmins can start minigames now.

If you want everyone to be in the same minigame I'd suggest getting the whole Default Minigames script. (All by Aloshi, I think)