07.11.2010, 14:43
(
Последний раз редактировалось Cameltoe; 08.11.2010 в 19:57.
)
- C_Mail
~ After a lot of requests i decided to make an simple but effective Mail script.
~ No plugins needed.
~ Only tested on Debian 5.
~ Simple and smooth. Does exactly what it should .. Nothing more Nothing less.
Link(s):~ Pastebin - Include.v.1.2
~ Pastebin - Php file.v.1.1
How to:~ Upload the php script to your host.
~ Edit the include file to match your host.
~ Put the include file inside '/pawno/include'.
~ Add the include to your gm by : '#include <c_mail>'.
~ Enjoy.
Editing the include:Look into the include and look for the 'SendMail' Stock, and the format part, you will see theres 'localhost/index.php' this would be the path to were you uploaded your script Ex: sa-mp.com/index.php. Edit it to match your host.Code:
pawn Код:stock SendMail(reciever[], sender[], subject[], message[])
{
new string[128];
format(string, sizeof(string), "localhost/index.php?sender=%s&reciever=%s&subject=%s&message=%s",sender,reciever,subject,message);
HTTP(1, HTTP_GET, string, "", "MailResponse");
}
That's it.
Can't get it working? write an reply and let me know about your problem.
Creditz:~ g_aSlice.
~ SA-MP dev team.
~ Me .