[Ajuda] Random
#6

Isso que vc que?:


pawn Код:
// no topo do gm..

new thp[MAX_PLAYERS];

new sSet[][2] =
{
    {0xFF0000AA, 1},
    {0x0000F2AA, 2},
    {0xFFFF00AA, 3}
};
   
// no comando, ou onde vc quer que execute o randon..
    new rand = random(sizeof(sSet));
    SetPlayerColor(playerid, sSet[rand][0]), thp[playerid] = sSet[rand][1];
Reply


Messages In This Thread
Random - by VenoN - 15.09.2012, 14:51
Re: Random - by Douglas_prt - 15.09.2012, 15:09
Re: Random - by Sky™ - 15.09.2012, 15:09
Re: Random - by VenoN - 15.09.2012, 15:14
Re: Random - by Douglas_prt - 15.09.2012, 15:16
Re: Random - by steeldark - 15.09.2012, 15:44
Re: Random - by VenoN - 15.09.2012, 16:14
Re: Random - by BreakDriFT - 15.09.2012, 16:27
Re: Random - by steeldark - 15.09.2012, 16:36
Re: Random - by VenoN - 15.09.2012, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)