24.11.2013, 20:24
You mean something like this:
And then you could use it:
I think that's what you're asking. Change the command part on your needs, just see the example of using the stock.
pawn Код:
stock random(min, max)
{
new randomtext = random(max-min)+min;
return randomtext;
}
pawn Код:
CMD:refuel(playerid, params[])
{
new string[126];
format(string, sizeof(string), "You have refueled your vehicle with %d liters of fuel.", random(50,100));
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}