Author Topic: How does one? : Make a script that creates a minigame and sets it to default?  (Read 1085 times)

READ THIS POST BEFORE GIVING IRREVELANT AWNSERS. Then gave a good awnser.


Quote
script that creates a minigame

FOR ME




I think it could be like this:


Code: [Select]
new MinigameObject(gamez);
game.zBrickRespawnTime = 200;
gamez.Color = red;
etc.



But can someone give me an example of a serverCmd function that makes a minigame and sets it to default.



Template:


Code: [Select]
function serverCmdstartgame(%client)
{
echo("Command recived.");
if(%client.isAdmin $= true)
{
echo("Making minigame.");

//STUFF FOR MINIGAME GOES HERE

}
}
« Last Edit: July 06, 2009, 10:43:24 PM by Azjherben »

Have you tried looking in the set default minigame script?

What about making a minigame?

you create it then activate the script and it automatically joins people in.....

you create itthen activate the script and it automatically joins people in.....


How!??


How!??
press escape click on minigame, then create, then activate the script....

I would suggest looping through the clientgroup, removing them from their current minigame, adding them to the one you want, and using a package for gameConnection::onClientEnterGame(%this) to make it so they also join it.

press escape click on minigame, then create, then activate the script....



How do I make a script that does that for me?

ITT: People not reading the OP.
He wants a script that creates a minigame, and then sets it to default.

ITT: People not reading the OP.
He wants a script that creates a minigame, and then sets it to default.
And he can partially achieve that by looking at the set default minigame script.. Infact, all it would take is a few searches and he'd have everything he needs.

We can't spoon feed everyone.

Take a look at the script yourself. There's nothing in there that lets you know how to create a minigame.
Instead of telling him to look at other add-ons, help him.
I'm not saying give him the code, but help him learn how to do it.

Look at Team Deathmatch. That partially handles the function you'd use to set up the minigame data. You could also use trace() to find the exact parameters sent when you click 'send' on the GUI.

trace(true);
Just spammed me!

trace(true);
Just spammed me!
Disconnect from IRC, disable any add-ons that use loops.

I disabled RTB completly.