SetPlayerSkill!
#12

Omg, I also got those:

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
        switch(
dialogid) {
            case 
DIALOG_REGISTER: {
                if(!
response) return Kick(playerid);
                if(
response) {
                    if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT""WHITE"Registering...",""RED"You have entered an invalid password.\n"WHITE"Type your password below to register a new account.","Register","Quit");
                    if(
INI_Open(getINI(playerid))) {
                        
INI_WriteString("Password",inputtext);
                        
INI_WriteInt("Cash"0);
                        
INI_WriteInt("Admin"0);
                        
INI_WriteInt("FirstTime"0);
                        
INI_WriteInt("Skin"0);
                        
INI_WriteInt("Score"0);
                        
INI_Save();
                        
INI_Close();
                        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
                    }
                }
            } case 
DIALOG_LOGIN: {
                if(!
response) return Kick playerid );
                if(
response) {
                    if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT""WHITE"Login",""RED"You have entered an invalid password.\n"WHITE"Type your password below to login.","Login","Quit");
                    if(
INI_Open(getINI(playerid))) {
                        
INI_ReadString(PlayerInfo[playerid][pPass],"Password",20);
                        if(
strcmp(inputtext,PlayerInfo[playerid][pPass],false)) {
                            
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
                        }
                        
GivePlayerMoneyplayeridINI_ReadInt"Cash" ) );
                        
PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");
                        
gFirstTimeHasJoined[playerid] = INI_ReadInt("FirstTime");
                        
gPlayerSkinForEver[playerid] = INI_ReadInt("Skin");
                        
SetPlayerScoreplayeridINI_ReadInt"Score" ) );
                        
INI_Close();
                    }
                }
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
SetPlayerSkill! - by samtey - 15.08.2011, 16:02
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 16:19
AW: SetPlayerSkill! - by samtey - 15.08.2011, 16:26
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 16:36
Re: SetPlayerSkill! - by playbox12 - 15.08.2011, 16:50
AW: SetPlayerSkill! - by samtey - 15.08.2011, 17:15
Re: AW: SetPlayerSkill! - by Libra_PL - 15.08.2011, 17:21
AW: SetPlayerSkill! - by samtey - 15.08.2011, 17:29
Re: SetPlayerSkill! - by Libra_PL - 15.08.2011, 17:45
AW: SetPlayerSkill! - by samtey - 15.08.2011, 18:38
Re: SetPlayerSkill! - by Flo_White - 15.08.2011, 19:03
AW: SetPlayerSkill! - by samtey - 15.08.2011, 19:48
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 19:54
AW: SetPlayerSkill! - by samtey - 15.08.2011, 20:34
Re: AW: SetPlayerSkill! - by Kush - 15.08.2011, 20:49
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:03
Re: AW: SetPlayerSkill! - by Markx - 15.08.2011, 21:04
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:07
Re: AW: SetPlayerSkill! - by Kush - 15.08.2011, 21:11
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:16
AW: SetPlayerSkill! - by samtey - 17.08.2011, 09:39
Re: SetPlayerSkill! - by doreto - 17.08.2011, 20:03
AW: SetPlayerSkill! - by samtey - 17.08.2011, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)