06.04.2014, 03:15
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.
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);
}
}
}