30.06.2012, 11:23
Hey,
sry for my bad english...
I would calculate the age of the player, who enter his/her date of birth.
I would make it in a dialog, when a user registers.
I have this so far:
sry for my bad english...
I would calculate the age of the player, who enter his/her date of birth.
I would make it in a dialog, when a user registers.
I have this so far:
Код:
#define DIALOG_ALTER 56 //define dialog of age
Код:
if(dialogid == DIALOG_ALTER)
{
if(response == 1)
{
new string[35];
new alter = strval(inputtext);
SetPVarInt(playerid,"Alter",alter);
format(string, sizeof(string), "You are %i years old?",alter);
SendClientMessage(playerid,COLOR_WHITE,string);
}
if(response == 0)
{
SendClientMessage(playerid,COLOR_RED,"You are leaving the Server!");
Kick(playerid);
}
return 1;
}


