Count 1/2 players
#7

pawn Код:
if (!strcmp("/test", cmdtext, true))
    {
        format(string,sizeof(string),"Test id:%d",getRandomID());
        SendClientMessage(playerid,COLOR_RED,string);
        return 1;
    }
    stock getRandomID()
    {
        new i, c;
        for ( ; i < MAX_PLAYERS; ++i )
        {
            if ( IsPlayerConnected( i ) )
            {
                ++c;
            }
        }
        return random(c);
    }
Reply


Messages In This Thread
Count 1/2 players - by knackworst - 17.09.2011, 22:04
Re: Count 1/2 players - by StuffBoy - 17.09.2011, 22:07
Re: Count 1/2 players - by JiHost - 17.09.2011, 22:09
Respuesta: Count 1/2 players - by Xyrex - 17.09.2011, 22:11
Re: Count 1/2 players - by knackworst - 17.09.2011, 22:41
Re: Count 1/2 players - by Xyrex - 17.09.2011, 23:08
Re: Count 1/2 players - by Ricop522 - 17.09.2011, 23:15
Re: Count 1/2 players - by knackworst - 18.09.2011, 10:10

Forum Jump:


Users browsing this thread: 3 Guest(s)