How to detect a winner if killerid is invalid?
#1

I'm trying to detect the winner if the second to last player kills himself. I want to get the remaining players name, etc. How would I go about doing this? I've attempted to create it, but I'm not too sure how to create it.

Here's the code I have.

pawn Код:
if(killerid == INVALID_PLAYER_ID)
        {
            if(IsPlayerReady[playerid] == 1 && GameProgress == 1)
            {
                PlayerCount --;
            }
            else if(IsPlayerReady[playerid] == 1 && GameProgress == 1 && PlayerCount == 2)
            {
                PlayerCount --;
                foreach(Player, i)
                {
                    EndRound(i);
                }
            }
        }
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)