Jump to content

Salut ! Am o intrebare ! De ce daca intru primul (id 0) ma baga la login/register dar daca intra altcineva (id 1, 2, 3, 4, etc) nu ii baga la login/registere ?


Recommended Posts

Posted
public OnPlayerConnect(playerid)
    {
    new string[256], nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));
    format(string, sizeof(string), "%s s-a conectat!", nume);
    print(string);
    PlayerInfo[playerid][pFier] = FierVechi[playerid];
    UpdateSpeed[playerid] = false;
    SpdObj[playerid][0] = INVALID_OBJECT_ID;
    SpdObj[playerid][1] = INVALID_OBJECT_ID;
    PlayerJob[playerid] = 0;
    Checkpoint[playerid] = 0;
    JobVehicle[playerid] = 0;
    JobWorking[playerid] = 0;
    PlayerJob1[playerid] = 0;
    Checkpoint1[playerid] = 0;
    JobVehicle1[playerid] = 0;
    JobWorking1[playerid] = 0;
    PlayerJob2[playerid] = 0;
    Checkpoint2[playerid] = 0;
    JobVehicle2[playerid] = 0;
    JobWorking2[playerid] = 0;
    CursaCheckpoint[playerid] = 0;
    CursaCar[playerid] = 0;
    Report[playerid] = 0;
    masinaadmin[playerid] = 0;
    Event[playerid] = 0;
    pEvent[playerid] = 0;
    Gift[playerid] = 0;
    GiftC[playerid] = 0;
    Bonus[playerid] = 0;
    SpecialQuest[playerid] = 0;
    SpecialQuestCheckpoint[playerid] = 0;
    Salutare[playerid] = 0;
    DrivingCheckpoint[playerid] = 0;
    MasinaDMV[playerid] = 0;
    fPolitie[playerid] = 0;
    fMedic[playerid] = 0;
    fTaxi[playerid] = 0;
    fProTv[playerid] = 0;
    IsInCar[playerid] = 0;
    format(ReportText[playerid], 256, "None");
    TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
    gPlayerLogged[playerid] = 0;
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SAVE, name);
    if (!dini_Exists(file))
    {
        ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Salut, nu ai un cont!", "Te rog scrie o parola !", "Register", "Inchide");
    }
    if(fexist(file))
    {
        ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Salut, ai deja un cont!", "Te rog scrie parola !", "Login", "Inchide");
    }
    return 1;


}

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.