little question
#20

for that we only need to change the OnPlayerPickupPickup
pawn Код:
new RandomMoney[5] = { 5_000, 10_000, 15_000, ... };
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == RandomPickup)
    {
        DestroyPickup(RandomPickup);
        SetTimer("CreateRandomPickup", 20000, false);
        new RandomMoneyAmount = random(sizeof RandomMoney), string[10];
        GivePlayerMoney(playerid, RandomMoney[RandomMoneyAmount]);
        Textdraw3 = TextDrawCreate(112.000000,118.000000,"You found the moneybag");
        Textdraw4 = TextDrawCreate(174.000000,79.000000, "Congratulations!!!");
        format(string, sizeof string, "$%d", RandomMoney[RandomMoneyAmount]);
        Textdraw5 = TextDrawCreate(254.000000,146.000000, string);
    }
    return 1;
}
Destroy / Hiding / Changing the textdraw you need to do by yourself
Reply


Messages In This Thread
little question - by nesty - 07.02.2009, 22:38
Re: little question - by Auto-Sized - 07.02.2009, 22:41
Re: little question - by nesty - 07.02.2009, 22:45
Re: little question - by nesty - 07.02.2009, 23:56
Re: little question - by Nero_3D - 08.02.2009, 00:53
Re: little question - by nesty - 09.02.2009, 14:21
Re: little question - by nesty - 09.02.2009, 20:51
Re: little question - by Eraz0r - 09.02.2009, 20:53
Re: little question - by nesty - 09.02.2009, 20:55
Re: little question - by nesty - 09.02.2009, 21:16
Re: little question - by ICECOLDKILLAK8 - 09.02.2009, 21:32
Re: little question - by Eraz0r - 09.02.2009, 21:52
Re: little question - by nesty - 09.02.2009, 22:03
Re: little question - by Eraz0r - 09.02.2009, 22:05
Re: little question - by nesty - 09.02.2009, 22:22
Re: little question - by Auto-Sized - 10.02.2009, 02:32
Re: little question - by nesty - 11.02.2009, 15:51
Re: little question - by Auto-Sized - 11.02.2009, 22:13
Re: little question - by nesty - 13.02.2009, 19:42
Re: little question - by Nero_3D - 13.02.2009, 20:31
Re: little question - by nesty - 14.02.2009, 16:40

Forum Jump:


Users browsing this thread: 2 Guest(s)