Question: What's is the best random message code
#6

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Show code.
Random Messages need more improvements

Код:
forward SendMSG();
new RandomMSG[][] =
{
    "Random Message 1",
    "Random Message 2",
    "Random Message 3"
};

public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(-1, RandomMSG[randMSG]); 
}
Код:
public OnGameModeInit()
{
    SetTimer("SendMSG", 60000, true); // whats the right timer? (So it won't call too fast)
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)