28.05.2018, 00:28
If I correctly understood, you want a player to wait for another player.
Looks like you already have a code for a game.
you can do it with many ways, I'll type a simple one.
at the top of the code
at the callback: OnPlayerDisconnect and in 'game leaving code'
at the command or code/func where players join this minigame or whatever it is.
at the starting of this game code
Looks like you already have a code for a game.
you can do it with many ways, I'll type a simple one.
at the top of the code
PHP код:
new TotalPlayers,PlayerInGame[MAX_PLAYERS];
PHP код:
if(PlayerInGame[playerid]) PlayerInGame[playerid] = 0, TotalPlayers--;
PHP код:
PlayerInGame[playerid] = 1, TotalPlayers++;
PHP код:
if(TotalPlayers >= 2)