SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/08/2016, 05:21 PM   #1
Shinja
Gangsta
 
Shinja's Avatar
 
Join Date: Jan 2016
Posts: 972
Reputation: 107
Default Dynamic Random Messages System [Controllable in Game]



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

Last edited by Shinja; 24/08/2016 at 04:52 PM.
Shinja is offline   Reply With Quote
Old 22/08/2016, 05:27 PM   #2
Infinity
High-roller
 
Infinity's Avatar
 
Join Date: Jul 2009
Posts: 1,222
Reputation: 975
Default Re: Dynamic Random Messages System [Controllable in Game]

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

I apologize for the stupidity of my fellow members

Quote:
Originally Posted by !damo!spiderman View Post
Stand for something that's going to help the world rather than fill it with more hate. Give someone a hug, tell someone you care... Do something, do anything but do it with love not hate.
Infinity is offline   Reply With Quote
Old 22/08/2016, 05:29 PM   #3
Shinja
Gangsta
 
Shinja's Avatar
 
Join Date: Jan 2016
Posts: 972
Reputation: 107
Default Re: Dynamic Random Messages System [Controllable in Game]

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
Shinja is offline   Reply With Quote
Old 22/08/2016, 06:57 PM   #4
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 583
Reputation: 117
Default Re: Dynamic Random Messages System [Controllable in Game]

Nice,as well useful for newbies!

Deserved +REP(1)
Bolex_ is offline   Reply With Quote
Old 23/08/2016, 09:13 AM   #5
BrianS123
Big Clucker
 
Join Date: Jul 2016
Posts: 85
Reputation: 0
Default Re: Dynamic Random Messages System [Controllable in Game]

Good one
BrianS123 is offline   Reply With Quote
Old 23/08/2016, 09:23 AM   #6
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 762
Reputation: 78
Default Re: Dynamic Random Messages System [Controllable in Game]

Good Job dude..
P.S: Give me your MAP XD, i like it xdd
__________________
Left SA:MP, and not avalaible anymore!!
Thanks samp for awesome moments, i enjoy!! Goodbye!
ModernFreeroam: www.mf-samp.com , IP:94.23.255.30:7777
CounterTerroristUnit: www.ctu.w4f.eu , IP:87.98.243.201:6969
xSF: www.xsfserver.com , IP: 87.98.243.201:6969
Exm: www.exmserv.me , IP: exmserv.me:7777
Underground Stunting: www.ustunting.com , IP:145.239.3.225:7777

Thanks everyone,for the awesome moments,
Regards, COD Ghosts owner.
Younes44 ,YOuNeS_Dz ,WarZ ,Bryan_ , Kaneki
Younes44 is offline   Reply With Quote
Old 23/08/2016, 10:52 AM   #7
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Dynamic Random Messages System [Controllable in Game]

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.
Stinged is offline   Reply With Quote
Old 23/08/2016, 12:33 PM   #8
Shinja
Gangsta
 
Shinja's Avatar
 
Join Date: Jan 2016
Posts: 972
Reputation: 107
Default Re: Dynamic Random Messages System [Controllable in Game]

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
Shinja is offline   Reply With Quote
Old 23/08/2016, 03:20 PM   #9
Shinja
Gangsta
 
Shinja's Avatar
 
Join Date: Jan 2016
Posts: 972
Reputation: 107
Default Re: Dynamic Random Messages System [Controllable in Game]

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



Last edited by Shinja; 24/08/2016 at 12:05 AM.
Shinja is offline   Reply With Quote
Old 24/08/2016, 12:23 AM   #10
Tass007
Gangsta
 
Tass007's Avatar
 
Join Date: May 2011
Location: Somewhere not near you
Posts: 733
Reputation: 31
Default Re: Dynamic Random Messages System [Controllable in Game]

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.
__________________
Copyright 2016 vR Studios
Currently working with vR Studios
Copying and pasting doesn't allow you to learn the things that reading and understanding will.

Last edited by Tass007; 24/08/2016 at 06:42 AM.
Tass007 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Sam's Random Messages System AbdullahShahid Filterscripts 4 07/08/2015 12:31 AM
[FilterScript] [DYNAMIC / IN-GAME] Screen Messages. HY Filterscripts 5 02/02/2015 07:47 PM
[FilterScript] Random Messages in Game by a bot! EPIC2LA Filterscripts 5 21/07/2014 04:12 AM
[FilterScript] Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!] Biesmen Filterscripts 5 02/03/2013 12:12 PM
[FilterScript] P-Messages [Random Messages system] Pooh7 Filterscripts 5 30/11/2010 03:43 PM


All times are GMT. The time now is 07:02 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.