07.12.2010, 10:57
pawn Код:
if (strcmp("/random", cmdtext, true, 6) == 0)
{
if(IsPlayerConnected(playerid))
{
new rand = random(4);
new emo[12];
if(rand == 0) { emo = "happy"; }
else if(rand == 1) { emo = "very happy"; }
else if(rand == 2) { emo = "lucky"; }
else { emo = "sad"; }
format(string, sizeof(string), "A player is %s", emo);
ProxDetector(10.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
return 1;
}