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.