Random player select
#5

I make this righ now

pawn Code:
if(strcmp(cmd, "/mission", true) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; ++i) {
            if(IsPlayerConnected(i)) {
                new RRandom = random(i);
            }
        }
        new name[MAX_PLAYER_NAME];
        GetPlayerName(RRandom, name, sizeof(name));
        format(coordsstring, sizeof(coordsstring), "Player name is %s %i", name, RRandom);
        SendClientMessage(playerid, COLOR_WHITE,coordsstring);
        return 0x01;
    }
Reply


Messages In This Thread
Random player select - by VoViNaToR - 14.06.2011, 18:57
Re: Random player select - by Mauzen - 14.06.2011, 19:01
Re: Random player select - by VoViNaToR - 14.06.2011, 19:10
Re: Random player select - by WooTFTW - 14.06.2011, 19:14
Re: Random player select - by Ricop522 - 14.06.2011, 19:20
Re: Random player select - by Benjo - 14.06.2011, 19:22
Re: Random player select - by VoViNaToR - 14.06.2011, 19:22

Forum Jump:


Users browsing this thread: 4 Guest(s)