This is the wrong section for this. But im going to help you.
At first you need to create a array to display 1-6.
Code:
new DiceArray[][] = {
"1",
"2" ,
"3" ,
"4" ,
"5",
"6"
};
//We need this part later to make it roll between 1 or 6 for now put it on top of your script at your other news
Next thing we need to do is create a command to dice.
For this example i will use ZCMD.
Code:
CMD:dice(playerid,params[])
{
new string[128]; // this will create the string which will send the value of dicearray to all players
new RandomDice = random(sizeof(DiceArray)); // This will store the output of DiceArray into RandomDice
format(string,sizeof(string),"%s(%i) rolls the dice: %s",PlayerName(playerid),playerid,DiceArray[RandomDice]);
SendClientMessageToAll(-1, string);
return 1;
}
Note: i did not test this so let me know if it works.