Dialog Login
#2

Try dis.

PHP код:
if(dialogid == 2)
{
    if ( !
response ) return Kick playerid );
    if( 
response )
    {
        if(
udb_hash(inputtext) == PlayerInfo[playerid][pPass])
        {
            
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra true, .extra playerid);
            
SetSpawnInfo(playerid0PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pLastX], PlayerInfo[playerid][pLastY], PlayerInfo[playerid][pLastZ], PlayerInfo[playerid][pFacingAngle], 000000);
            
SpawnPlayer(playerid);
            
GivePlayerMoney(playeridPlayerInfo[playerid][pCash]);
            
SetPlayerSkin(playeridPlayerInfo[playerid][pSkin]);
            
SetPlayerScore(playeridPlayerInfo[playerid][pLevel]);
            
SetPlayerHealth(playeridPlayerInfo[playerid][pHealth]);
            
SetPlayerArmour(playeridPlayerInfo[playerid][pArmour]);
            
SetPlayerInterior(playeridPlayerInfo[playerid][pInt]);
            
SetPlayerVirtualWorld(playeridPlayerInfo[playerid][pVW]);
            
format(tmp2sizeof(tmp2), "~w~Welcome ~n~~y~   %s"GetName(playerid));
            
GameTextForPlayer(playeridtmp250001);
            
TogglePlayerSpectating(playerid0);
            
ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Login","Benvenuto su SouthCity RolePlay\n\nQuesto account и giа esistente. Inserisci la tua password per effettuare il Login.","Login","Slogga");
            }
          }
     }
     return 
1;

Reply


Messages In This Thread
Dialog Login - by Gianmarco - 28.11.2013, 11:48
Re: Dialog Login - by ikbenremco - 28.11.2013, 12:46
Re: Dialog Login - by Gianmarco - 28.11.2013, 13:05
Re: Dialog Login - by ikbenremco - 28.11.2013, 13:10

Forum Jump:


Users browsing this thread: 2 Guest(s)