mining system help
#1

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

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

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

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.",??? , ???);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)