29.05.2020, 18:07
Try this:
pawn Code:
CMD:dice(playerid,params[])
{
new string[128];
if(HasDice[playerid] == 0) return SendClientMessage(playerid, -1, "You don't have a pair of dices");
format(string, sizeof(string), "You throwed dices and it stands to: %i", random(12));//12 'cause you throwed a pair of it
SendClientMessage(playerid, -1, string);
return 1;
}