View Single Post
Old 29/05/2020, 08:06 PM   #4
Relic
Little Clucker
 
Join Date: May 2013
Posts: 33
Reputation: 13
Default Re: Dice command problem

Quote:
Originally Posted by Nexotronix View Post
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;
}
Works smoothly man!

Thanks bruda, +repped you.
__________________
Relic is offline   Reply With Quote