Jump to content

Question

Posted

Salut .

Am si eu o problema la logare pe server.

Atunci cand un player se logheaza se poate logha cu orice parola...

Cum pot rezolva aceasta problema?

4 answers to this question

Recommended Posts

Posted

[pawn]//==============================================================================

SetPlayerColor(playerid,COLOR_GRAD2);

GetPlayerName(playerid, plname, sizeof(plname));

format(string, sizeof(string), "users/%s.ini", plname);

SCM(playerid, 0xFF0000C8, "{FFFFFF}[ {DC0C0C}Quit GF-RP{FFFFFF} ]: Se face conectarea la server. Va rugam sa asteptati...");

if(fexist(string))

{

gPlayerAccount[playerid] = 1;

}

else

{

gPlayerAccount[playerid] = 0;

}

return 1;

}

PUBLIC: JoinChannel(playerid, number, line[])

{

    if(IsPlayerConnected(playerid))

{

    if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )

{

        JoinChannelNr(playerid, number);

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Wrong Channel Password !");

    }

}

return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.