SA-MP Forums Archive
[FilterScript] sMOTD - Simple MOTD Script - 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] sMOTD - Simple MOTD Script (/showthread.php?tid=605085)



sMOTD - Simple MOTD Script - Shady - 14.04.2016

• sMOTD •


Information:
Hello, I'm a beginner scripter and I would like to introduce my first release in the SA-MP Forums community which it is a message of the day script and it works for any server. It's unique, 88 lines only and it doesn't have any bugs, Also, it uses DINI to load the current MOTD, it will be added on my upcoming admin filterscript, soon.

Requirements: Download:


Re: sMOTD - Simple MOTD Script - iCurse - 14.04.2016

Easy and simple, good for a newbie like you. This will be very helpful for beginners.


Re: sMOTD - Simple MOTD Script - biker122 - 14.04.2016

What's the use of "string[128]" variable in "MOTD" command?:
pawn Код:
format(string, sizeof(string), "Message of the Day has been successfully updated.");
        SendClientMessageToAll(COLOR_WHITE, string);
Just use:
pawn Код:
SendClientMessageToAll(COLOR_WHITE, "Message of the Day has been successfully updated.");

Other than that - That's a good start!


Re: sMOTD - Simple MOTD Script - xTURBOx - 14.04.2016

Nice start
keep up the good work


Re: sMOTD - Simple MOTD Script - Shady - 14.04.2016

Quote:
Originally Posted by biker122
Посмотреть сообщение
What's the use of "string[128]" variable in "MOTD" command?:
pawn Код:
format(string, sizeof(string), "Message of the Day has been successfully updated.");
        SendClientMessageToAll(COLOR_WHITE, string);
Just use:
pawn Код:
SendClientMessageToAll(COLOR_WHITE, "Message of the Day has been successfully updated.");

Other than that - That's a good start!
Thanks for this tip, script was updated.


Re: sMOTD - Simple MOTD Script - Private200 - 14.04.2016

Or you could use format to show the updated message:

pawn Код:
format(string, sizeof string, "MOTD updated (%s)", params);
Other than that, pretty nice for start. Keep them going.


Re: sMOTD - Simple MOTD Script - Shady - 15.04.2016

Script has been updated to version 1.1, I'm thinking about creating a textdraw text for it.

Changes:
- When you update the MOTD, the new one will display for everyone.
- Fixed a bug which causes a warning.


Re: sMOTD - Simple MOTD Script - HaRdiiZin - 16.04.2016

Nice work for a beginner
Quote:

it saves using DINI




Re: sMOTD - Simple MOTD Script - xTURBOx - 16.04.2016

Switch to y_ini it is much faster