[FilterScript] sMOTD - Simple MOTD Script
#1

• 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:
Reply
#2

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

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!
Reply
#4

Nice start
keep up the good work
Reply
#5

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.
Reply
#6

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.
Reply
#7

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.
Reply
#8

Nice work for a beginner
Quote:

it saves using DINI

Reply
#9

Switch to y_ini it is much faster
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)