How to get the last person!
#3

Well,under OnPlayerDeath, clear the InEvent to 0 and then do a command to check who's still inside event.

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;
}
I hope I helped any feedback would be appreciated!
Reply


Messages In This Thread
How to get the last person! - by Flokx - 25.01.2015, 15:19
Re: How to get the last person! - by Smileys - 25.01.2015, 15:23
Re: How to get the last person! - by Stanford - 25.01.2015, 15:24
Re: How to get the last person! - by Flokx - 25.01.2015, 15:33
Re: How to get the last person! - by Stanford - 25.01.2015, 16:49
Re: How to get the last person! - by Flokx - 25.01.2015, 17:13
Re: How to get the last person! - by Smileys - 25.01.2015, 17:18
Re: How to get the last person! - by Flokx - 25.01.2015, 17:34
Re: How to get the last person! - by Flokx - 25.01.2015, 18:16
Re: How to get the last person! - by Smileys - 25.01.2015, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)