TextdrawString
#1

hi,
as soon as a player picks up a pickup i want that the texdraw number decreases from 5 to 4.
If its picked up again from 4 to 3 and so on.
Ive done it like this but it doesnt work.
Do i have to check each texdraw with a timer to get this to work?

pawn Код:
new mrmoneybundlesavailable = 5;

mravspec2 = TextDrawCreate(4.000000, 158.000000, "Money Bundles: ~r~5");
TextDrawBackgroundColor(mravspec2, 255);
TextDrawFont(mravspec2, 1);
TextDrawLetterSize(mravspec2, 0.260000, 0.899999);
TextDrawColor(mravspec2, -1);
TextDrawSetOutline(mravspec2, 1);
TextDrawSetProportional(mravspec2, 1);

PickUpMoneyBundleOnMr = CreatePickup(1212,3,x,y,z,0);

//As soon as the moneyrush begins the textdraw srting is shown
new textformat[185];
format(textformat,sizeof textformat,"Money Bundles: ~r~%d",mrmoneybundlesavailable);
TextDrawSetString(mravspec2,textformat);
TextDrawShowForAll(mravspec2);


//OnPlayerPickUpPickUp
if(pickupid==PickUpMoneyBundleOnMr)
{
mrmoneybundlesavailable --;
}
regards...
Reply


Messages In This Thread
TextdrawString - by BlackWolf120 - 16.01.2011, 15:19
Re: TextdrawString - by Franck_ - 16.01.2011, 15:30
Re: TextdrawString - by Mike_Peterson - 16.01.2011, 15:30
Re: TextdrawString - by BlackWolf120 - 16.01.2011, 16:15

Forum Jump:


Users browsing this thread: 3 Guest(s)