Random Messages 2.0 User friendly! -
FireCat - 28.09.2011
Introduction
Hello, and yes another random messages script!
But this one is easier!
With just 1 function you can add random messages easly in your server!
What's the difference then?
Just go in your script, and do this:
pawn Код:
#include <RandomMessages>
The code is simple:
AddRandomMessage(Msgcolor,Msgtext[])
Go under OnGameModeInit, and for example do this:
pawn Код:
AddRandomMessage(red,"Herro :D");
You can add as many as you want but you just have to change this:
By default, it's 50 but feel free to add more if you want (:
Aswell the timer delay is 60 seconds aka 1 minute.
You can change it if you want by doing this
pawn Код:
#define MESSAGE_DELAY TIME HERE IN SECONDS!!!
Else it's 1 minute (:
Pictures?
Bugs
None!
Feel free to pm me, or post it here if you find any!
Download
No credits in it (:
5 min job so the credits can go to you if you want :b
Pastebin 2.0:
http://pastebin.com/RBLyD5Aj
2.0: Fixed a thing, thanks to the stalking hiddos.
Re: Random Messages 1.0 Friendly user! -
MadSkillz - 28.09.2011
Nice post, you need to make something extra.. extra unique!!
Re: Random Messages 1.0 Friendly user! -
FireCat - 28.09.2011
Quote:
Originally Posted by MadSkillz
Nice post, you need to make something extra.. extra unique!!
|
Lol any suggestions?
OT:
Thank you :b
Re: Random Messages 1.0 Friendly user! -
wups - 28.09.2011
I'd do with loading/saving/removing. Also the size 64 is not enough for some messages.
Edit:
And why :
pawn Код:
#if defined MAX_MESSAGES
#undef MAX_MESSAGES
#define MAX_MESSAGES 50
#else
#define MAX_MESSAGES 50
#endif
You should let the users define it before including it.
pawn Код:
#if !defined MAX_MESSAGES
#define MAX_MESSAGES 50
#endif
Re: Random Messages 1.0 Friendly user! -
HyperZ - 28.09.2011
Well done

.
Re: Random Messages 1.0 Friendly user! -
FireCat - 28.09.2011
Quote:
Originally Posted by wups
I'd do with loading/saving/removing. Also the size 64 is not enough for some messages.
Edit:
And why :
pawn Код:
#if defined MAX_MESSAGES #undef MAX_MESSAGES #define MAX_MESSAGES 50 #else #define MAX_MESSAGES 50 #endif
You should let the users define it before including it.
pawn Код:
#if !defined MAX_MESSAGES #define MAX_MESSAGES 50 #endif
|
I was in dought if !define would work :b
Anyways thanks for the tip (:
Quote:
Originally Posted by HyperZ
Well done  .
|
Gracias buddy (:
Re : Random Messages 1.0 Friendly user! -
Naruto_Emilio - 28.09.2011
How about that
AddRandomMessage(COLOUR, Text, AMMOUNT OF TIME Reseting);
Isn't more easy?, other ways nice.
Re: Re : Random Messages 1.0 Friendly user! -
FireCat - 28.09.2011
Quote:
Originally Posted by Naruto_Emilio
How about that
AddRandomMessage(COLOUR, Text, AMMOUNT OF TIME Reseting);
Isn't more easy?, other ways nice.
|
Thanks for the suggestion and I think it's nice too but hard to script.
Otherwise I guess it would have to be a timer for each message
Re: Random Messages 1.0 Friendly user! -
NessaHD - 19.10.2011
Awesome work, simple but very nice..
+Rep to u.
AW: Random Messages 1.0 Friendly user! -
Pablo Borsellino - 19.10.2011
The User are friendly with this Include? JEAH, this is unique. [Irony]
Nice job.
Re: AW: Random Messages 1.0 Friendly user! -
FireCat - 19.10.2011
Quote:
Originally Posted by Pablo Borsellino
The User are friendly with this Include? JEAH, this is unique. [Irony]
Nice job.
|
"Random Messages 1.0 Friendly user!"
Do you see
Unique writen?
No. Go away.
Re: Random Messages 1.0 Friendly user! -
TheGamer! - 29.10.2011
Add this for the easily usage!
Code:
native AddRandomMessage(Msgcolor, Msgtext[]);
Re: Random Messages 1.0 Friendly user! -
FireCat - 29.10.2011
Quote:
Originally Posted by TheGamer!
Add this for the easily usage!
Code:
native AddRandomMessage(Msgcolor, Msgtext[]);
|
Lol?
Re: Random Messages 1.0 Friendly user! -
Fool - 29.10.2011
Isn't it User Friendly? wtf u on ? o.o
Re: Random Messages 1.0 Friendly user! -
FireCat - 29.10.2011
Quote:
Originally Posted by Porsche911
Isn't it User Friendly? wtf u on ? o.o
|
What?
Re: Random Messages 1.0 Friendly user! -
Hiddos - 29.10.2011
Few things:
1. Double the amount of cells for each message.
2. What is this:
. Colours are integer, I don't get it why you're storing it as a string. I'm surprised it compiled without errors.
3. It's 'user friendly', not 'friendly user'.
Re: Random Messages 1.0 Friendly user! -
FireCat - 29.10.2011
Quote:
Originally Posted by Hiddos
Few things:
1. Double the amount of cells for each message.
2. What is this: . Colours are integer, I don't get it why you're storing it as a string. I'm surprised it compiled without errors.
3. It's 'user friendly', not 'friendly user'.
|
I'm sorry, but colors are not integers.
0xFFD2C8FF tell me if that's an integer.
Re: Random Messages 1.0 Friendly user! -
Stylock - 29.10.2011
Quote:
Originally Posted by FireCat
I'm sorry, but colors are not integers.
0xFFD2C8FF tell me if that's an integer.
|
It's definitely not a string.
Re: Random Messages 1.0 Friendly user! -
FireCat - 29.10.2011
Quote:
Originally Posted by YJIET
It's definitely not a string.
|
He explained me it threw msn :b
Re: Random Messages 1.0 Friendly user! -
Lookin - 30.10.2011
Very Nice You Beat Me To It But Mine Was A Little Different =D