View Single Post
Old 29/05/2020, 06:07 PM   #2
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:
    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]
Development Video: Watch Here
Serverside Map/GPS System: Watch Here
Discord: Tom_Strobe#2300
Nexotronix is offline   Reply With Quote