16.11.2013, 15:32
pawn Код:
new RandomMSG[][] =
{
"1",
"2",
"3",
"4",
"5",
"6"
};
forward SendMSG();
CMD:dice(mycommand, playerid, params[]) // or cmd(mycommand, playerid, params[])
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(COLOR_PURPLE, RandomMSG[randMSG]); // Replace the "color" with your defined color.
return 1;
}
Ex:Bustern:6