help plis
#7

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
PHP код:
new TotalPlayers,PlayerInGame[MAX_PLAYERS]; 
at the callback: OnPlayerDisconnect and in 'game leaving code'
PHP код:
if(PlayerInGame[playerid]) PlayerInGame[playerid] = 0TotalPlayers--; 
at the command or code/func where players join this minigame or whatever it is.
PHP код:
PlayerInGame[playerid] = 1TotalPlayers++; 
at the starting of this game code
PHP код:
if(TotalPlayers >= 2
Reply


Messages In This Thread
help plis - by Mati18 - 25.05.2018, 01:05
Re: help plis - by DrUnix - 25.05.2018, 01:52
Re: help plis - by Gammix - 25.05.2018, 01:58
Re: help plis - by Sew_Sumi - 25.05.2018, 03:30
Re: help plis - by GTLS - 25.05.2018, 09:24
Re: help plis - by Mati18 - 27.05.2018, 19:13
Re: help plis - by Mugala - 28.05.2018, 00:28
Re: help plis - by Sew_Sumi - 28.05.2018, 02:21

Forum Jump:


Users browsing this thread: 1 Guest(s)