Jump to content
Sign in to follow this  
thirkle

[317]How to make a multiplayer mini game (waiting room, gametime, scoring etc.)[317]

Recommended Posts

[code]if(server.waitTime == -1 && (absX >=xxxx && absX <=xxxx && absY >=yyyy && absY <=yyyy)) //this says if the player is in the waiting room and the waitTime is -1, then it will tele them into the game field.
{
teleportToX = 0000.misc.random(2);//change coordinates to the gamefield
teleportToy = 0000.misc.random(2);
}

if(server.gameTime == -1 && (absX >=xxxx && absX <=xxxx && absY >=yyyy && absY <=yyyy)) //this checks if the gametime is done and the player is in the game field, if he/she is, then it will teleport them back to the lobby.
{
iszammy = false;
issara = false;
teleportToX = 0000.misc.random(2);//change coordinatesto your lobby(where your portals are)
teleportToy = 0000.misc.random(2);

if(server.sarascore > server.zammyscore && issara == true)
{
addItem(put a prize item here such as tokens, 1);
}
if(server.sarascore < server.zammyscore && iszammy == true)
{
addItem(put a prize item here such as tokens, 1);
}
}[/code]

would actually work better because the code you had only sets the boolean to false if their team wins so if you set it to false when everyone is teleported then it will change it for everyone or just add iszammy = false; issara = false; in both if statements that check if the team won.

Share this post


Link to post
Share on other sites
this is only for deltas?

Share this post


Link to post
Share on other sites
Convert it not hard or just make one your self :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

×