30.11.2014, 04:41
Quote:
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. |