SA-MP Forums Archive
mining system help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mining system help (/showthread.php?tid=548684)



mining system help - JawsPlus - 01.12.2014

How to set random ore will get random money
Код:
new Randomore[][] =
{
	"Copper",
	"Gold",
	"Silver",
	"Diamond",
	"Platinum",
	"Iron",
	"Coal",
	"Emaral"
};



Re : mining system help - Dutheil - 01.12.2014

Use that :
pawn Код:
#define minrand(%0,%1) random(%1-%0)+%0



Re: mining system help - Runn3R - 01.12.2014

Код:
new Randomore[][2] =
{   //ORE    PRICE
	"Copper, 500",
	"Gold, 300",
	"Silver, 400",
	"Diamond, 600",
	"Platinum, 700",
	"Iron, 200",
	"Coal, 100",
	"Emaral, 900"
};



Re: mining system help - JawsPlus - 02.12.2014

how to give them money and send client message with random ore and money

Код:
GivePlayerMoney(playerid,  ???   )

format (string,sizeof string,"{E5E4E2}[ORE]:{FFFFFF}You just filter a mine and get $%d for some %s.",??? , ???);