01.10.2011, 18:47
global variable
new SELLCAR1[] = { 600, 671, 689, 571, 861, 751, 1267, 678, 874, 698, 1000 };
in command
new rand = random(sizeof(SELLCAR1));
format(string, sizeof(string), "Your %d$, cash.", SELLCAR1[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerCash(playerid, SELLCAR1[rand]);
new SELLCAR1[] = { 600, 671, 689, 571, 861, 751, 1267, 678, 874, 698, 1000 };
in command
new rand = random(sizeof(SELLCAR1));
format(string, sizeof(string), "Your %d$, cash.", SELLCAR1[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerCash(playerid, SELLCAR1[rand]);