help survivor
#4

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
pawn Код:
new JoinedEvent[MAX_PLAYERS]; // Top of script

/joinevent
JoinedEvent[playerid] = 1;
new count;
count++;



OnPlayerDeath:
if(JoinedEvent[playerid] == 1)
{
    count--;
    You've been killed and you're now out of the event.
    if(count == 1)
    {
        Declare winner.
    }
}
EDIT: Just seen Cypress' edit.
That's not going to work because if someone quits while in the even it's not going to declare the winner. Plus you need the count variable to be on top along with the "JoinedEvent" one.
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: 2 Guest(s)