29.11.2014, 20:16
i need money drop system if any one have it like /dropmoney [AMMONT] and be in shape of money bag ? any one have it /+rep
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. |