25.05.2014, 09:16
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
I still have to test it, but i don't think there is any other way..
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
}