28.07.2012, 01:00
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; }