24.10.2011, 12:48
pawn Код:
public SendRandomMessage()
{
static lastmessage = 0;
new rand = random(CURRENT_MESSAGES);
while(rand == lastmessage && CURRENT_MESSAGES != 1) { rand = random(CURRENT_MESSAGES); }
lastmessage = rand;
for ( new i = 0; i != MAX_PLAYERS; ++i )
{
if ( GetPlayerSkin ( i ) >= 20 || GetPlayerSkin ( i ) <= 30 )
{
SendClientMessage( i, MESSAGE_COLOR, RM[lastmessage] );
}
}
}