I'm assuming that you mean server-sided.
To make a Slayer minigame:This will create a minigame, set the server host as the creator, and load previous settings:
$myMinigameExample = Slayer.Minigames.addMinigame();
This is basically dedicated server startup mode.
This will create a minigame, set that BLID as the creator, and load default settings:
$myMinigameExample = Slayer.Minigames.addMinigame(11902);
Replace 11902 with the BLID. Only one minigame allowed per BLID.
To see if Slayer is enabled:if(isObject(Slayer))
or
if(isObject($Slayer::Server))
Normal minigames:Not sure, but I believe you would use serverCmdCreateMinigame(). If you don't want to do that, you can always just create the minigame manually, like this:
$mini = new scriptObject()
{
class = MinigameSO;
owner = findClientByName(Greek2me);
//other stuff like settings go here
};
Also check this out:
http://scatteredspace.com/forum/index.php?topic=6.0You can also use Slayer as a ref.