30.11.2013, 23:31
pawn Код:
CMD:bolsa(playerid, params[])
{
new randomganancia = floatround(floatadd(0.1 + random(floatround(0.7,floatround_round)),floatround_round));
new precioaccion = 100;
new ganancia = randomganancia * precioaccion;
new total = ganancia * Info[playerid][pAcciones];
Earn(playerid, total);
Info[playerid][pAcciones] = 1;
}