O Ilusionista
Captain 100K
No Player Join
I made this code to prevent other players to join the game while you are playing. Useful for things like intro or when you want just one player on the screen for some time.
Second player will be able to choose the characters if he press start, but won't be able to join until you set the code off.
usage:
You can put this code in a Empty entity and spawn it on the level, like this:
I made this code to prevent other players to join the game while you are playing. Useful for things like intro or when you want just one player on the screen for some time.
Second player will be able to choose the characters if he press start, but won't be able to join until you set the code off.
Code:
void noplayerJoin (int iG)
{
// controls if other players can join the game or not
// 1 - players CAN NOT join, 0 play CAN join
// remember to set it 0 when you are done, or you will have a 1P only game.
// Douglas Baldan/O Ilusionista - 20/09/14
changeopenborvariant("nojoin", iG);
}
usage:
To block other players to join@cmd noplayerJoin 1
To set it off@cmd noplayerJoin 0
You can put this code in a Empty entity and spawn it on the level, like this:
spawn empty
@script
void main()
{
changeopenborvariant("nojoin",1);
}
@end_script
coords 180 189
at 0