help survivor
#2

You should count the players that take place in the even and when they die decrease the variable. Then you check if it equals to 1.

pawn Код:
new TotalEvenParticipants;

TotalEvenParticipants++;
// When someone joins

TotalEvenParticipants--;
//When someone dies

if (TotalEvenParticipants == 1)
//only one left
You should always mind about decreasing the variable during someone disconnects while participating in even.
Reply


Messages In This Thread
help survivor - by Freak@ - 22.06.2014, 00:22
Re: help survivor - by Cypress - 22.06.2014, 00:25
Re: help survivor - by BleverCastard - 22.06.2014, 00:28
Re: help survivor - by Cypress - 22.06.2014, 00:33
Re: help survivor - by Freak@ - 22.06.2014, 00:52
Re: help survivor - by Dr.Einstein - 22.06.2014, 02:32

Forum Jump:


Users browsing this thread: 1 Guest(s)