Money
#3

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
You can't script that yourself? It's simple.

What you need:
-sscanf
-zcmd

new MoneyPickup[];
new pickupid;
new PickupAmount[];

CMD:dropmoney(playerid, params[])
{
new amount;
if(sscanf(params,"i",amount)) return SendClientMessage(playerid, -1, "Usage: /dropmoney [amount]");
MoneyPickup[pickupid] = CreatePickup((moneybag, figure it out));
PickupAmount[pickupid] = amount;
pickupid++;
return 1;
}

OnPlayerPickUpPickup()
{
for(new i=0; i<500; i++)
{
if(pickupid == MoneyPickup[i])
{
GivePlayerMoney(playerid, PickupAmount[i]);
DestroyPickup(MoneyPickup[i]);
}
}
}

You'll need to finalize that. Good luck.
thanks for help +rep
Reply


Messages In This Thread
Money - by Seaf - 29.11.2014, 20:16
Re: Money - by Aerotactics - 29.11.2014, 22:14
Re: Money - by Seaf - 30.11.2014, 04:41

Forum Jump:


Users browsing this thread: 1 Guest(s)