01.11.2014, 16:09
I have a small problem, when I write the password does not automatically spawn gives me ...
PHP код:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
InterpolateCameraPos(playerid, 1820.5413, -1896.3677, 25.5245, 1820.5776, -1584.8534, 25.5245, 5000, CAMERA_MOVE);
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"{BECBFC}Login:",""COL_WHITE"Parola pe care ai scris-o este incorecta.\n\n"COL_WHITE"{BECBFC}Introdu parola.\n","Login","Quit");
}
return 1;
}
}
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, true);
return 1;
}