Jump to content

Recommended Posts

Posted

Problema intalnita (descriere):Am laut gamemode'ul Bigzone ultima versiune de pe net,si nu ma lasa sa fac cont imi tot spune ca e parola gresita l-am pus si pe mysql si degeaba..
Ero(area / rile) / warning-(ul / urile):nu imi da erori nici warning'uri
Liniile de cod / sursa / script-ul(obligatoriu):

    else
    {
        new stringyy[320],
            loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname));
        gPlayerLogTries[playerid] -= 1;
        if(gPlayerLogTries[playerid] == 1 || gPlayerLogTries[playerid] == 0)
        {
            format(stringyy,sizeof(stringyy),"{FF0000}Incorrect password. You have %d remaining login attempts left.", gPlayerLogTries[playerid]);
            SendClientMessage(playerid, COLOR_RED, stringyy);
        }
        ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the HardGaming RPG Server.\n\nPlease enter your password below!","Login","Cancel");
        if(gPlayerLogTries[playerid] == -1)
        {
            new stringkick[256];
            format(stringkick, sizeof(stringkick), "AdmWarn: {FFFFFF}%s has been kicked for entering the wrong password 2 times.",loginname);
               ABroadCast(COLOR_RED2,stringkick,1);
            KickEx(playerid);
        }
        return 1;
    }


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: da dar nu am reusit..

Posted

public OnPlayerRequestClass(playerid, classid)
{
    if(gPlayerLogged[playerid] == 1)
    {
        if(ChosenSkin[playerid] == 1) return SpawnPlayer(playerid);

    }
    if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
    {
         SetPlayerInterior(playerid,0);
        SetPlayerPosEx(playerid, 1742.9814,-1863.0938,16.2048);
        InterpolateCameraPos(playerid, 1804.1313,-1732.0179,21.7294, 1037.3715,-1732.7358,25.2859, 30000, CAMERA_MOVE);
        InterpolateCameraLookAt(playerid,1441.6654,-1732.0317,18.0373,1037.3715,-1732.7358,25.2859, 30000, CAMERA_MOVE);
        TogglePlayerControllable(playerid, 0);
        if (gPlayerAccount[playerid] != 0)
        {
            SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: {FFFFFF}Welcome to HardGaming RPG.");
            SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: {FFFFFF}You already have a registered account, please enter your password into the dialog box.");
            ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the HardGaming RPG Server.\n\nPlease enter your password below!","Login","Cancel");
        }
        else
        {
            gPlayerAccount[playerid] = 0;
             new loginname[158],
            stringgg[300];
            GetPlayerName(playerid,loginname,sizeof(loginname));
            for(new clanid; clanid < MAX_CLANS; clanid++)
            {
                if(strfind(loginname,ClanInfo[clanid][cClanTag],true) != -1)
                {
                    format(stringgg,sizeof(stringgg),"Nu poti folosi acel username. '%s' este inregistrat de un clan. Nu poti folosi acel cuvant in nickname-ul tau.",ClanInfo[clanid][cClanTag]);
                    SendClientMessage(playerid, COLOR_RED, stringgg);
                    format(stringgg,sizeof(stringgg),"You can't use that username! '%s' is a registered clan tag. You can't use that word in your nickname.",ClanInfo[clanid][cClanTag]);
                    SendClientMessage(playerid, COLOR_RED, stringgg);
                    KickEx(playerid);
                }
            }
            SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: {FFFFFF}Welcome to HardGaming RPG.");
            SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: {FFFFFF}You aren't registered yet. Please enter your desired password in the dialog box to register.");
            ShowPlayerDialog(playerid,DIALOG_LOGIN1,DIALOG_STYLE_PASSWORD,"SERVER: Registration","Welcome to the HardGaming RPG Server.\n\nPlease enter your desired password below!","Register","Cancel");
        }
        login[playerid] = SetTimerEx("Logink",60000,false,"d",playerid);
    }
    else if(IsPlayerNPC(playerid)) return 1;
    return 1;
}

 

------

 

    else
    {
        new stringyy[320],
            loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname));
        gPlayerLogTries[playerid] -= 1;
        if(gPlayerLogTries[playerid] == 1 || gPlayerLogTries[playerid] == 0)
        {
            format(stringyy,sizeof(stringyy),"{FF0000}Incorrect password. You have %d remaining login attempts left.", gPlayerLogTries[playerid]);
            SendClientMessage(playerid, COLOR_RED, stringyy);
        }
        ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the HardGaming RPG Server.\n\nPlease enter your password below!","Login","Cancel");
        if(gPlayerLogTries[playerid] == -1)
        {
            new stringkick[256];
            format(stringkick, sizeof(stringkick), "AdmWarn: {FFFFFF}%s has been kicked for entering the wrong password 2 times.",loginname);
               ABroadCast(COLOR_RED2,stringkick,1);
            KickEx(playerid);
        }
        return 1;
    }

Posted (edited)

Din cate stiu eu gm-ul bizgone nu are astfel de probleme. Verifica daca l-ai pus bine pe mysql si daca ai facut bine conexiunea gamemode - baza.

Edited by Alberto.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.