Random Client message (not a single line)
#4

This is a simple code which I hope to give ideas or hints to you.

Код:
forward messages(targetid);
public messages(targetid)
{
    new RandMessage = random(5);//max number of the messages line is "5"
    switch(RandMessage)//now we switch the messages
    {
        case 1:
        {
            SendClientMessage(targetid,0x24FF0AB9, "message");
	}
	case 2:
	{
        	SendClientMessage(targetid,0x24FF0AB9, "message");
        }
	case 3:
	{
        	SendClientMessage(targetid,0x24FF0AB9, "message");
        }
        case 4:
	{
        	SendClientMessage(targetid,0x24FF0AB9, "message");
        }
	case 5:
	{
        	SendClientMessage(targetid,0xFF00FFFF, "message");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Random Client message (not a single line) - by SnG.Scot_MisCuDI - 28.07.2012, 00:46
Re: Random Client message (not a single line) - by [KHK]Khalid - 28.07.2012, 00:54
Re: Random Client message (not a single line) - by BlackWolf120 - 28.07.2012, 00:56
Re: Random Client message (not a single line) - by Youice - 28.07.2012, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)