Random mesage
#5

Want to make random msgs? Well:
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;
}
Ofc change the "colorhere" to HEX color, and change "Message" to your rand message!
Reply


Messages In This Thread
Random mesage - by Almiuxas99 - 08.02.2011, 19:27
Re: Random mesage - by Hiddos - 08.02.2011, 19:38
Re: Random mesage - by Stunt_Guy - 08.02.2011, 22:47
Re: Random mesage - by Pooh7 - 09.02.2011, 05:06
Re: Random mesage - by Mean - 09.02.2011, 08:59

Forum Jump:


Users browsing this thread: 1 Guest(s)