[Ajuda] Como criar coisas randфmicas?
#6

ai cara vc й boladaum hein.
tenta assim:

pawn Код:
if (strcmp(cmdtext, "/Descarregar", true) == 0)
        {
            new RandomPagamento = random(sizeof(Pagamento));

            if(!PlayerToPoint(40.0, playerid, -1013.5171,-639.6732,32.0078))
            {
                 SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Vocк nгo estб na area de descarregamento!");
                 return 1;
            }
            if(Profissao[playerid] != PROF_CAMINHONEIRO)
            {
                 SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Vocк nгo й um caminhoneiro!");
                 return 1;
            }
            if(Carga[playerid] == 0)
            {
                SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Vocк nгo tem uma carga!");
                return 1;
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 515)
            {
                SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Vocк nгo estб em um Roadtrain.");
                return 1;
            }
            Carga[playerid] = 0;
            SendClientMessage(playerid, 0xFFA4A4AA, "(INFO) Caminhгo descarregado com sucesso!");

            new abcd4[150];
            format(abcd4,sizeof(abcd4),"(INFO) O dono da empresa de carregamento lhe pagou um bфnus pelo serviзo! (R$%d)",Pagamento);
            SendClientMessage(playerid,0xFFA4A4AA,abcd4);

            GivePlayerMoney(playerid,Pagamento[RandomPagamento][0],Pagamento[RandomPagamento][1],Pagamento[RandomPagamento][2],);
            return 1;
        }
Reply


Messages In This Thread
Como criar coisas randфmicas? - by HumildadeForevis - 21.06.2013, 19:43
Re: Como criar coisas randфmicas? - by s4kuL - 21.06.2013, 19:59
Re: Como criar coisas randфmicas? - by HumildadeForevis - 21.06.2013, 20:15
Re: Como criar coisas randфmicas? - by Standby - 21.06.2013, 20:19
Re: Como criar coisas randфmicas? - by Wendell - 21.06.2013, 20:21
Re: Como criar coisas randфmicas? - by s4kuL - 21.06.2013, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)