How should I do this?
#4

Alright.. I still reticent.
PHP код:
CMD:getgift(playeridparams[])
{
    new 
bool:done false;
    while(!
done)
    {
        new 
rand random(10);
        switch(
rand)
        {
            case 
:
            {
                if(
boxVariables[1][boxMoney] == 1)  SendClientMessage(playerid, -1"You have won $500,000!"), GivePlayerMoney(playeridrand*1000), done true;
                else if (
boxVariables[1][boxVehicle] == 1SendClientMessage(playerid, -1"You have won a car!"), done true;
                else 
rand random(10);
            }
            
// case ...
        
}
    }
    return 
1;

Something like that?
Reply


Messages In This Thread
How should I do this? - by danielpalade - 04.07.2016, 00:26
Re: How should I do this? - by Dayrion - 04.07.2016, 00:51
Re: How should I do this? - by danielpalade - 04.07.2016, 00:59
Re: How should I do this? - by Dayrion - 04.07.2016, 01:10
Re: How should I do this? - by danielpalade - 04.07.2016, 01:22
Re: How should I do this? - by Dayrion - 04.07.2016, 01:24
Re: How should I do this? - by danielpalade - 04.07.2016, 01:29
Re: How should I do this? - by Dayrion - 04.07.2016, 01:35
Re: How should I do this? - by danielpalade - 04.07.2016, 01:37
Re: How should I do this? - by Dayrion - 04.07.2016, 01:43

Forum Jump:


Users browsing this thread: 1 Guest(s)