Ending "rounds" and determining alive players
#4

just an example
pawn Code:
#include <foreach>

new Iterator:TDM<MAX_PLAYERS>;


Iter_Add(TDM, playerid);//now this when a player joins

//now this all when a player dies
if(Iter_Contains(TDM, playerid))Iter_Remove(TDM, playerid);//this should be in player disconnect too

PlayerSpectatePlayer(playerid, Iter_Random(TDM));//to spectate random players
Reply


Messages In This Thread
Ending "rounds" and determining alive players - by [NWA]Hannes - 29.06.2014, 10:42
Re: Ending "rounds" and determining alive players - by BroZeus - 29.06.2014, 10:45
Re: Ending "rounds" and determining alive players - by [NWA]Hannes - 29.06.2014, 10:51
Re: Ending "rounds" and determining alive players - by BroZeus - 29.06.2014, 10:57
Re: Ending "rounds" and determining alive players - by [NWA]Hannes - 29.06.2014, 11:12
Re: Ending "rounds" and determining alive players - by BroZeus - 29.06.2014, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)