09.02.2011, 08:59
Want to make random msgs? Well:
Ofc change the "colorhere" to HEX color, and change "Message" to your rand message!
pawn Код:
public OnGameModeInit( )
{
SetTimer ( "RandomMsgs", 120*1000, 1 ); // Will send a message every 2 minutes
return 1;
}
pawn Код:
forward RandomMsgs( );
public RandomMsgs( )
{
new msgs = random ( 5 ); // 5 msgs max!
switch ( msgs )
{
case 0: SendClientMessageToAll ( colorhere, "Message1" );
case 1: SendClientMessageToAll ( colorhere, "Message2" );
case 2: SendClientMessageToAll ( colorhere, "Message3" );
case 3: SendClientMessageToAll ( colorhere, "Message4" );
case 4: SendClientMessageToAll ( colorhere, "Message5" );
}
return 1;
}