16.11.2013, 16:19
Try something like this
pawn Код:
CMD:dice(playerid, params[])
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
new randMSG = random(sizeof(RandomMSG));
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s: %s", pname,RandomMSG[randMSG]);
SendClientMessageToAll(-1, string);
ProxDetector(30, playerid, string, COLOR_GREY);
return 1;
}