public OnPlayerConnect(playerid)
{
if(GetPlayerAge(playerid) < 18)
{
new string[512], Name[24];
GetPlayerName(playerid,Name,24);
format(string,sizeof string,"* %s (ID: %d) has kicked out from the server. Reason: Under 18 Age",playerid,Name);
SendClientMessageToAll(-1,string);
Kick(playerid);
return 1;
}
return 1;
}
stock GetPlayerAge(playerid)
{
new MailAge[2048];
format(MailAge,sizeof(MailAge),"http://bl159w.blu159.mail.live.com/P.mvc#!/mail/ContactMainLight.aspx?SearchEmailKeyWord=by&n=712124097");
HTTP(playerid,HTTP_GET,MailAge,"","iBirthYear");
new year; getdate(year);
new Float:Age = Float:year-iBirthYear;
return 1;
}
Joke : D