SA-MP Forums Archive
[FilterScript] Dynamic Random Messages System [Controllable in Game] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Dynamic Random Messages System [Controllable in Game] (/showthread.php?tid=615454)



Dynamic Random Messages System [Controllable in Game] - Shinja - 22.08.2016


Dynamic Random Messages System [Controllable in Game]
This is an advanced system for Random messages, fully controllable ingame using command */MSETTINGS*, access to this command command allowed ONLY for RCON Administrator as default

REQUIREMENTS: zcmd By Zeex

PICTURES:









INSTALLING: Nothing special. Load the filterscript!

CHANGELOG:
23/08/2016 Added *Prefix system! See pictures below




24/08/2016 Fix *Cooldown is now saving on server restart!
Fix *Dialog couldn't show many messages!
Thanks to Tass007 for Reporting!

DOWNLOAD: https://www.upload.ee/files/6097459/messages.amx.html

PASTBIN: http://pastebin.com/TuBJ7a8C



Re: Dynamic Random Messages System [Controllable in Game] - Infinity - 22.08.2016

You only uploaded the .amx file. You are required to provide the source code.


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 22.08.2016

Quote:
Originally Posted by Infinity
View Post
You only uploaded the .amx file. You are required to provide the source code.
Ayy if you wait a bit
Edit: Already done


Re: Dynamic Random Messages System [Controllable in Game] - Bolex_ - 22.08.2016

Nice,as well useful for newbies!

Deserved +REP(1)


Re: Dynamic Random Messages System [Controllable in Game] - BrianS123 - 23.08.2016

Good one


Re: Dynamic Random Messages System [Controllable in Game] - Younes44 - 23.08.2016

Good Job dude..
P.S: Give me your MAP XD, i like it xdd


Re: Dynamic Random Messages System [Controllable in Game] - Stinged - 23.08.2016

Very poorly optimized.

You're creating arrays inside of loops.
You're using "flineexist" in loops, which means you're opening the file and closing it 25 (MAX_MSG) times.
Plus, that function by itself is creating a 256 array 25 (MAX_MSG) times.

There are A LOT more stuff like this, but I'm too lazy to show each one of them.

NOTE: I'm just being honest, I don't mean to offend you. I think honesty is what makes someone fix their mistakes.


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 23.08.2016

Thanks all!

Quote:
Originally Posted by Younes44
View Post
Good Job dude..
P.S: Give me your MAP XD, i like it xdd
@Younes44, https://www.youtube.com/watch?v=IX-Lq5GQ6JE
And remove d3d9 if you have poor PC

@Stinged, Thanks for your time checking whole code, i'll improve it soon and an Update is comming soon by the way


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 23.08.2016

NEW FEATURE: 2016/08/23
Added *Prefix system! See pictures below





Re: Dynamic Random Messages System [Controllable in Game] - Tass007 - 24.08.2016

Thank you.

EDIT: I've found a bug, if there are more than 7 messages saved, you can't see the 8th one. Found another bug, when you change the Cooldown and you restart the server, it doesn't save.


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 24.08.2016

Quote:
Originally Posted by Tass007
Посмотреть сообщение
Thank you.

EDIT: I've found a bug, if there are more than 7 messages saved, you can't see the 8th one. Found another bug, when you change the Cooldown and you restart the server, it doesn't save.
Thanks for reporting!
First bug: Got it! fixing in next version
Second bug: it's already fixed in version 2.0, have you downloaded the new version yet?


Re: Dynamic Random Messages System [Controllable in Game] - JakeXxX - 24.08.2016

Nice and Simple.
Good Job i hope that you are willing to fix the bugs.


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 24.08.2016

Quote:
Originally Posted by JakeXxX
Посмотреть сообщение
Nice and Simple.
Good Job i hope that you are willing to fix the bugs.
Thanks and Ofcourse



FIXES24/08/2016
Fix *Cooldown is now saving on server restart!
Fix *Dialog couldn't show many messages!
Thanks to Tass007 for Reporting!


NOTE: To apply last changes, you must delete delete the old messages.ini and let the Filterscript create a new one!



Re: Dynamic Random Messages System [Controllable in Game] - Quinncell - 24.08.2016

I havent had time to look at the code but it looks really good in the screen shots.
+rep


Re: Dynamic Random Messages System [Controllable in Game] - Rix70 - 24.08.2016

looks cool!


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 26.08.2016

Thanks!


Re: Dynamic Random Messages System [Controllable in Game] - Tass007 - 11.09.2016

I can't see anything on Message6, nor can I see anything after 6. Is this fixed or is it going to be fixed?


Re: Dynamic Random Messages System [Controllable in Game] - Salsa - 11.09.2016

it looks good ...


Re: Dynamic Random Messages System [Controllable in Game] - KaisAggarwal - 11.09.2016

Good one but there are few bugs i will fix it myself.


Re: Dynamic Random Messages System [Controllable in Game] - Shinja - 11.09.2016

Quote:
Originally Posted by Tass007
Посмотреть сообщение
I can't see anything on Message6, nor can I see anything after 6. Is this fixed or is it going to be fixed?
It was already fixed.



Quote:

Good one but there are few bugs i will fix it myself.

Can you report some?