25.01.2015, 15:24
Well,under OnPlayerDeath, clear the InEvent to 0 and then do a command to check who's still inside event.
I hope I helped any feedback would be appreciated!
pawn Код:
CMD:eventsurvivors(playerid, params[])
{
new string[MAX_PLAYER_NAME + 30], playername[MAX_PLAYER_NAME];
foreach(new i : Player)
{
GetPlayerName(i, playername, sizeof(playername));
if(InEvent[i]) { format(string,sizeof(string), "%s is at event.", playername); SendClientMessage(playerid, -1, string); }
}
return 1;
}