19.01.2011, 13:29
pawn Код:
if(dialogid == 1) //LOGIN
{
if(response)
{
if(!strlen(inputtext))
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
return 1;
}
if(strlen(inputtext) >= 50)
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
return 0;
}
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
return 1;
}