16.12.2010, 12:31
(
Последний раз редактировалось wups; 30.07.2011 в 13:08.
)
MySQL E-Mail system v1.0
I present you a MySQL E-Mail system i made.Don't ask in this thread if you don't know how to use mysql! There are millions of guides for this. However, this filterscript creates the table by itself.
What is it meant for?
Players of your server can e-mail each other even if one of them is offline!
You can delete a message or reply to a message.
Installing
First, download the .pwn file below.
Second - place it in the filterscripts directory.
Then open it with PAWNO and change these defines:
pawn Код:
// You must configure these!
#define SQL_IP "YOUR IP HERE"
#define SQL_USER "YOUR USER HERE"
#define SQL_PASSWORD "YOUR PASS HERE"
#define SQL_DB "YOUR DB HERE"
Finally, open server.cfg and add Email to the end of filterscripts. Example:
pawn Код:
filterscripts base anims Email
P.S. You must use a mysql plugin. Works fine with G-sTyLeZzZ
Credits
mktime - DracoBlue
sscanf - ******
RyDeR` - replaceChar function.
wups - Email system
Change Log
Код:
v1.0 - Added line seperator. - Fixed SQL Injection bugs. - Removed @EMAIL_NAME.com (now you just have to input the players name). - Some small fixes. v0.9 - Some minor bug fixes. v0.8 - Initial release.
Screens
OTHER PICTURES: http://imageshack.us/g/705/samp171tt.png/
Last notes
The command for the system is /email
If you have any suggestions/complains - post them here. I'll try to help you.
Also, trading a cookie to a video!
Download
Pastebin v1.0
Pastebin v0.9