Bonus kill / player
#7

Like this maybe.

pawn Код:
stock RandomPlayer()
{
    new ConnectedPlayers[MAX_PLAYERS];
    new count;

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            ConnectedPlayers[count] = i;
            count++;
            SendClientMessage(i,0xF80000,"You've been chosen as a bonus player.");

        }
    }
    if(count > 0) return ConnectedPlayers[random(count)];
    return INVALID_PLAYER_ID;
}
Reply


Messages In This Thread
Bonus kill / player - by Ananisiki - 16.06.2013, 22:14
Re: Bonus kill / player - by park4bmx - 17.06.2013, 00:26
Re: Bonus kill / player - by Pottus - 17.06.2013, 01:00
Re: Bonus kill / player - by Ananisiki - 17.06.2013, 18:07
Re: Bonus kill / player - by Scenario - 17.06.2013, 18:15
Re: Bonus kill / player - by Ananisiki - 23.06.2013, 02:21
Re: Bonus kill / player - by Goldilox - 23.06.2013, 05:09
Re: Bonus kill / player - by Ananisiki - 23.06.2013, 18:02

Forum Jump:


Users browsing this thread: 3 Guest(s)