How to identify the winner??
#3

I'm already working on a Last Man Standing filterscript..

I do it like this:
I make a variable that counts the total players, increment it on joining and decrement on leaving and OnPlayerDeath. I check it on OnPlayerDeath callback:
- rough code
pawn Код:
//OnPlayerDeath
if (playerCount == 1)
{
     //loop through all the players present in last man standing and get the name & id (it will get the name and id   of the remaining player because there is only 1 player present in LMS (which was found by our playerCount variable)
     // send message to all
}
I still have to test it, but i don't think there is any other way..
Reply


Messages In This Thread
How to identify the winner?? - by Ali98 - 25.05.2014, 09:03
Re: How to identify the winner?? - by biker122 - 25.05.2014, 09:12
Re: How to identify the winner?? - by SyntaxQ - 25.05.2014, 09:16
Re: How to identify the winner?? - by Ali98 - 25.05.2014, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)