Question: What's is the best random message code - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question: What's is the best random message code (
/showthread.php?tid=627268)
Question: What's is the best random message code -
DerickClark - 25.01.2017
What's the best random message code.
Timer + Don't recall the same message
Re: Question: What's is the best random message code -
ISmokezU - 25.01.2017
https://sampwiki.blast.hk/wiki/Random_Messages
Respuesta: Question: What's is the best random message code -
Eloy - 25.01.2017
Yes, and set const variable if your messages donґt use a dinamic system for more velocity
Re: Question: What's is the best random message code -
DerickClark - 25.01.2017
Quote:
Originally Posted by ISmokezU
|
I try that. it kept re-calling the same messages. over over again. and What time should call out?
Re: Question: What's is the best random message code -
ISmokezU - 25.01.2017
Quote:
Originally Posted by DerickClark
I try that. it kept re-calling the same messages. over over again. and What time should call out?
|
Show code.
Re: Question: What's is the best random message code -
DerickClark - 25.01.2017
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)
}
Re: Question: What's is the best random message code -
rymax99 - 25.01.2017
http://pastebin.com/nJw7LdXt
FS form, but can obviously snip out the code into a GM.
Re: Question: What's is the best random message code -
DerickClark - 25.01.2017
Quote:
Originally Posted by rymax99
|
It re-call the same message like.
First: [TIP]: test3
Again: [TIP]: test3
I need to add more of randon messages that why?
Re: Question: What's is the best random message code -
Nero_3D - 26.01.2017
Do you really want a random message (except the current one) or do you want to show all messages in random order?
In the first case that could happen
Random Message 1
Random Message 2
Random Message 1
Random Message 2
Random Message 1
Random Message 3
Or do you want to show all messages in random order and than repeat ?
Random Message 1
Random Message 3
Random Message 2
Random Message 3
Random Message 1
Random Message 2
Re: Question: What's is the best random message code -
DerickClark - 26.01.2017
Quote:
Originally Posted by Nero_3D
Do you really want a random message (expect the current one) or do you want to show all messages in random order?
In the first case that could happen
Random Message 1
Random Message 2
Random Message 1
Random Message 2
Random Message 1
Random Message 3
Or do you want to show all messages in random order and than repeat ?
Random Message 1
Random Message 3
Random Message 2
Random Message 3
Random Message 1
Random Message 2
|
Random Message 1
Random Message 3
Random Message 2
Random Message 3
Random Message 1
Random Message 2