View Single Post
Old 29/05/2020, 06:07 PM   #2
Nexotronix
Huge Clucker
 
Nexotronix's Avatar
 
Join Date: Jan 2010
Location: Donetsk/Ukraine
Posts: 275
Reputation: 41
Default Re: Dice command problem

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;
}
__________________
Work In Progress:
[GameMode]Stroberia RolePlay (20%) [Join My Channel to take part in Testing http://discord.gg/sBpRC5E]
Development Video: Watch Here
Serverside Map/GPS System: Watch Here
Discord: Tom_Strobe#2300
Nexotronix is offline   Reply With Quote