[Ajuda] Possнvel Hack ?
#1

Bom, й assim: Estou de boa em meu servidor quando loga um admin e bane todo mundo.

O estranho й que nenhum administrador faz isso, todos sao de confianзa minha, se trata de um hack.

Vi no Search um tуpico do Tiu_DaColombia e como o servidor dele, o meu nao tem o ENCRYPT de senhas.

Caso eu coloque, й possнvel que pare isso ?

Vlw!
Reply
#2

Loga como administrador RCON ou como administrador conforme seu sistema de administraзгo?

Encriptar vai impossibilitar que algum mal feitor tenha acesso diretamente as senhas dos jogadores.

Mas a pergunta em questгo й, como ele tem acesso a estes arquivos ?


Caso seja login por RCON uma soluзгo seria permitir que somente determinado jogador possa efetuar o login.(https://sampwiki.blast.hk/wiki/OnRconLoginAttempt)
Reply
#3

Ele loga como administrador conforme o meu sistema de administraзao.

Mas assim: O cara disse que nao adianta mudar a senha e isso aconteceu pela primeira vez ontem, caso eu coloque a encriptaзao, isso poderб parar ?

E sobre a terceira pergunta, eu nao sei cara. Ele disse que й um hack dele aн, um tal de Chefe_FuSioN.
Reply
#4

Tem certeza que seu Gamemode nгo й da Internet, pois em alguns Gamemodes da Internet jб vi ocorrer o mesmo!

Tente encripta-lo.
Reply
#5

Jб encriptei, agora sу quero a certeza:

Com a aзao acima (encriptaзao), pode parar o "possнvel hack" ?
Reply
#6

http://windows.microsoft.com/pt-pt/w...-is-encryption
Reply
#7

Consegui fazer, ficou assim as duas publics:

pawn Код:
forward LogarEncrypt(playerid,password[]);

public LogarEncrypt(playerid,password[])
{
    new string2[64];
    format(string2,sizeof(string2),"Players/%s.ini",PlayerName(playerid));

    if(strcmp(password,DOF2_GetString(string2,"Key"),true) == 0)
    {
        DOF2_SetString(string2,"Key",Encrypt(password));

        PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2,"Level");
        PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2,"AdminLevel");
        PlayerInfo[playerid][pVIP] = DOF2_GetInt(string2,"DonateRank");
        PlayerInfo[playerid][gPupgrade] = DOF2_GetInt(string2,"UpgradePoints");
        PlayerInfo[playerid][pConnectTime] = DOF2_GetInt(string2,"ConnectedTime");
        PlayerInfo[playerid][pReg] = DOF2_GetInt(string2,"Registered");
        PlayerInfo[playerid][pSex] = DOF2_GetInt(string2,"Sex");
        PlayerInfo[playerid][pMuted] = DOF2_GetInt(string2,"Muted");
        PlayerInfo[playerid][pExp] = DOF2_GetInt(string2,"Respect");
        GivePlayerMoneyEx(playerid,DOF2_GetInt(string2,"Money"));
        PlayerInfo[playerid][pConta] = DOF2_GetInt(string2,"Bank");
        PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2,"Crimes");
        PlayerInfo[playerid][pKills] = DOF2_GetInt(string2,"Kills");
        PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2,"Deaths");
        PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2,"Phonebook");
        PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2,"LottoNr");
        PlayerInfo[playerid][pProfissao] = DOF2_GetInt(string2,"Profissao");
        PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2,"Paycheck");
        PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2,"HeadValue");
        PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2,"Jailed");
        PlayerInfo[playerid][pJailTime] = DOF2_GetInt(string2,"JailTime");
        PlayerInfo[playerid][pMats] = DOF2_GetInt(string2,"Materiais");
        PlayerInfo[playerid][pDrogas] = DOF2_GetInt(string2,"Maconha");
        PlayerInfo[playerid][pDrogas2] = DOF2_GetInt(string2,"Cocaina");
        PlayerInfo[playerid][pDrogas3] = DOF2_GetInt(string2,"Crack");
        PlayerInfo[playerid][pLider] = DOF2_GetInt(string2,"Lider");
        PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2,"Member");
        PlayerInfo[playerid][pPosto] = DOF2_GetInt(string2,"Rank");
        PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2,"Char");
        PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2,"ContractTime");
        PlayerInfo[playerid][pDetSkill] = DOF2_GetInt(string2,"DetSkill");
        PlayerInfo[playerid][pSexSkill] = DOF2_GetInt(string2,"SexSkill");
        PlayerInfo[playerid][pBoxSkill] = DOF2_GetInt(string2,"BoxSkill");
        PlayerInfo[playerid][pLawSkill] = DOF2_GetInt(string2,"LawSkill");
        PlayerInfo[playerid][pMechSkill] = DOF2_GetInt(string2,"MechSkill");
        PlayerInfo[playerid][pnewsSkill] = DOF2_GetInt(string2,"newsSkill");
        PlayerInfo[playerid][pDrogasSkill] = DOF2_GetInt(string2,"DrogasSkill");
        PlayerInfo[playerid][pSHealth] = DOF2_GetInt(string2,"pSHealth");
        PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2,"PhoneNr");
        PlayerInfo[playerid][pPHousekey] = DOF2_GetInt(string2,"House");
        PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2,"Bizz");
        PlayerInfo[playerid][pCarLic] = DOF2_GetInt(string2,"CarLic");
        PlayerInfo[playerid][pFlyLic] = DOF2_GetInt(string2,"FlyLic");
        PlayerInfo[playerid][pBoatLic] = DOF2_GetInt(string2,"CarLic");
        PlayerInfo[playerid][pGunLic] = DOF2_GetInt(string2,"GunLic");
        PlayerInfo[playerid][pPayDay] = DOF2_GetInt(string2,"PayDay");
        PlayerInfo[playerid][pCDPlayer] = DOF2_GetInt(string2,"CDPlayer");
        PlayerInfo[playerid][pWins] = DOF2_GetInt(string2,"Wins");
        PlayerInfo[playerid][pLoses] = DOF2_GetInt(string2,"Loses");
        PlayerInfo[playerid][pDrugPerk] = DOF2_GetInt(string2,"DrugPerk");
        PlayerInfo[playerid][pMiserPerk] = DOF2_GetInt(string2,"MiserPerk");
        PlayerInfo[playerid][pPainPerk] = DOF2_GetInt(string2,"PainPerk");
        PlayerInfo[playerid][pTraderPerk] = DOF2_GetInt(string2,"TraderPerk");
        PlayerInfo[playerid][pTut] = DOF2_GetInt(string2,"Tutorial");
        PlayerInfo[playerid][pWarns] = DOF2_GetInt(string2,"Avisos");
        PlayerInfo[playerid][pMarried] = DOF2_GetInt(string2,"Married");

        strmid(PlayerInfo[playerid][pMarriedTo], DOF2_GetString(string2,"MarriedTo"), 0, strlen(DOF2_GetString(string2,"MarriedTo")), 255);

        PlayerInfo[playerid][pSpawn] = DOF2_GetInt(string2,"Spawn");
        PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2,"SafeMaconha");
        PlayerInfo[playerid][pSafeDrogas2] = DOF2_GetInt(string2,"SafeCocaina");
        PlayerInfo[playerid][pSafeDrogas3] = DOF2_GetInt(string2,"SafeCrack");
        PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2,"SafeMaconha");
        PlayerInfo[playerid][pSafeMat] = DOF2_GetInt(string2,"SafeMateriais");

        WantedPoints[playerid] = DOF2_GetInt(string2,"NivelProcurado");
        Dinamites[playerid] = DOF2_GetInt(string2,"Dinamites");
        PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2,"HelperLevel");
        Surpresas[playerid] = DOF2_GetInt(string2,"Surpresas");

        PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2,"Luta");
        PlayerInfo[playerid][pDrogado] = DOF2_GetInt(string2,"Drogado");
        PlayerInfo[playerid][pDrogado2] = DOF2_GetInt(string2,"Drogado2");
        PlayerInfo[playerid][pDoenca] = DOF2_GetInt(string2,"Doenca");
        PlayerInfo[playerid][pCreditos] = DOF2_GetInt(string2,"Creditos");

        PlayerInfo[playerid][pPos_x] = DOF2_GetFloat(string2,"Pos_x");
        PlayerInfo[playerid][pPos_y] = DOF2_GetFloat(string2,"Pos_y");
        PlayerInfo[playerid][pPos_z] = DOF2_GetFloat(string2,"Pos_z");

        PlayerInfo[playerid][pCarKey] = DOF2_GetInt(string2,"Carro1");
        PlayerInfo[playerid][pCarKey2] = DOF2_GetInt(string2,"Carro2");
       
        DOF2_SetInt(string2,"Encrypt",1);
        PlayerInfo[playerid][pEncrypt] = DOF2_GetInt(string2,"Encrypt");

    }
    else
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Play Online RPG", "Seja bem vindo ao Play Online RPG\n\nColoque sua Senha para se conectar ao Game", "Conectar","Sair");
        gPlayerLogTries[playerid] += 1;

        new string3[50];

        format(string3,sizeof(string3),"%d/5 erros.",gPlayerLogTries[playerid]);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,string3);

        if(gPlayerLogTries[playerid] == 5)
        {
            SendClientMessage(playerid,COLOR_LIGHTRED,"Vocк errou a senha cinco vezes e recebeu KICK.");
            SetTimerEx("KickPlayer",100,0,"i",playerid);
        }
        return 1;
    }
    OnPlayerRequestClass2(playerid);

    GameTextForPlayer(playerid,"~r~Bem vindo",1,3);

    TextDrawShowForPlayer(playerid,Reloginho1[playerid]); TextDrawShowForPlayer(playerid,Reloginho2[playerid]);

    ConsumingMoney[playerid] = 1;

    CurrentMoney[playerid] = GetPlayerMoneyEx(playerid);
    SetPlayerWantedLevel(playerid, WantedPoints[playerid]);

    if(PlayerInfo[playerid][pAdmin] == 9) { away[playerid] = 1; }

    ApresentarPlayer(playerid);
    ConectarPlayer(playerid);
    MostrarPlayer(playerid);

    if(PlayerInfo[playerid][pReg] == 0)
    {
        PlayerInfo[playerid][pLevel] = 1;
        PlayerInfo[playerid][pSHealth] = 0.0;
        PlayerInfo[playerid][pPos_x] = 2246.6;
        PlayerInfo[playerid][pPos_y] = -1161.9;
        PlayerInfo[playerid][pPos_z] = 1029.7;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pLocal] = 255;

        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 289; } else { PlayerInfo[playerid][pSkin] = 216; }
        new randphone = 1000 + random(100000);

        PlayerInfo[playerid][pPnumber] = randphone;
        PlayerInfo[playerid][pPHousekey] = 255;
        PlayerInfo[playerid][pPbiskey] = 255;
        PlayerInfo[playerid][pConta] = 10000;
        PlayerInfo[playerid][pReg] = 1;
        PlayerInfo[playerid][pProfissao] = 0;
        PlayerInfo[playerid][pKills] = 0;
        PlayerInfo[playerid][pDeaths] = 0;

        ResetPlayerMoneyEx(playerid);
    }
    if(PlayerInfo[playerid][pWarns] == 1)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк tem 1 aviso!");
    }
    if(PlayerInfo[playerid][pWarns] == 2)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк tem 2 avisos!");
    }
    if(PlayerInfo[playerid][pWarns] == 3)
    {
        PlayerInfo[playerid][pWarns] = 0;
    }
    VerOrg(playerid);
    DateProp(playerid);

    if(AdmCheck(playerid) == 0 && PlayerInfo[playerid][pAdmin] > 0)
    {
        PlayerInfo[playerid][pAdmin] = 0;
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк perdeu o seu Admin.");
    }
    if(HelperCheck(playerid) == 0 && PlayerInfo[playerid][pHelper] > 0)
    {
        PlayerInfo[playerid][pHelper] = 0;
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк perdeu o seu Helper.");
    }
    SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    MedicBill[playerid] = 0;
    gPlayerLogged[playerid] = 1;
    SpawnPlayer(playerid);

    new tmp2[35]; format(tmp2, sizeof(tmp2), "~n~ ~w~Bem vindo ~n~~b~%s", PlayerName(playerid));
    GameTextForPlayer(playerid, tmp2, 5000, 3); ScoreLevel(playerid);

    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Admin %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pHelper] >= 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Helper %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pVIP] == 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~VIP %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pVIP] == 2)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Socio %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(strfind(PlayerName(playerid), "_Soon", true) != -1)
    {
        GameTextForPlayer(playerid,"~r~Familia Soon",5000,3);
        Familia[playerid] = 1;
    }
    else if(strfind(PlayerName(playerid), "_COP", true) != -1 || strfind(PlayerName(playerid), "_AppFTD", true) != -1)
    {
        GameTextForPlayer(playerid,"~r~Familia COP",5000,3);
        Familia[playerid] = 2;
    }
    else
    {
        Familia[playerid] = 0;
    }
    return 1;
}
forward LogarEncrypt2(playerid,password[]);

public LogarEncrypt2(playerid,password[])
{
    new string2[64];
    format(string2,sizeof(string2),"Players/%s.ini",PlayerName(playerid));

    if(strcmp(Encrypt(password),DOF2_GetString(string2,"Key"),true) == 0)
    {
        DOF2_SetString(string2,"Key",Encrypt(password));

        PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2,"Level");
        PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2,"AdminLevel");
        PlayerInfo[playerid][pVIP] = DOF2_GetInt(string2,"DonateRank");
        PlayerInfo[playerid][gPupgrade] = DOF2_GetInt(string2,"UpgradePoints");
        PlayerInfo[playerid][pConnectTime] = DOF2_GetInt(string2,"ConnectedTime");
        PlayerInfo[playerid][pReg] = DOF2_GetInt(string2,"Registered");
        PlayerInfo[playerid][pSex] = DOF2_GetInt(string2,"Sex");
        PlayerInfo[playerid][pMuted] = DOF2_GetInt(string2,"Muted");
        PlayerInfo[playerid][pExp] = DOF2_GetInt(string2,"Respect");
        GivePlayerMoneyEx(playerid,DOF2_GetInt(string2,"Money"));
        PlayerInfo[playerid][pConta] = DOF2_GetInt(string2,"Bank");
        PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2,"Crimes");
        PlayerInfo[playerid][pKills] = DOF2_GetInt(string2,"Kills");
        PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2,"Deaths");
        PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2,"Phonebook");
        PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2,"LottoNr");
        PlayerInfo[playerid][pProfissao] = DOF2_GetInt(string2,"Profissao");
        PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2,"Paycheck");
        PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2,"HeadValue");
        PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2,"Jailed");
        PlayerInfo[playerid][pJailTime] = DOF2_GetInt(string2,"JailTime");
        PlayerInfo[playerid][pMats] = DOF2_GetInt(string2,"Materiais");
        PlayerInfo[playerid][pDrogas] = DOF2_GetInt(string2,"Maconha");
        PlayerInfo[playerid][pDrogas2] = DOF2_GetInt(string2,"Cocaina");
        PlayerInfo[playerid][pDrogas3] = DOF2_GetInt(string2,"Crack");
        PlayerInfo[playerid][pLider] = DOF2_GetInt(string2,"Lider");
        PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2,"Member");
        PlayerInfo[playerid][pPosto] = DOF2_GetInt(string2,"Rank");
        PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2,"Char");
        PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2,"ContractTime");
        PlayerInfo[playerid][pDetSkill] = DOF2_GetInt(string2,"DetSkill");
        PlayerInfo[playerid][pSexSkill] = DOF2_GetInt(string2,"SexSkill");
        PlayerInfo[playerid][pBoxSkill] = DOF2_GetInt(string2,"BoxSkill");
        PlayerInfo[playerid][pLawSkill] = DOF2_GetInt(string2,"LawSkill");
        PlayerInfo[playerid][pMechSkill] = DOF2_GetInt(string2,"MechSkill");
        PlayerInfo[playerid][pnewsSkill] = DOF2_GetInt(string2,"newsSkill");
        PlayerInfo[playerid][pDrogasSkill] = DOF2_GetInt(string2,"DrogasSkill");
        PlayerInfo[playerid][pSHealth] = DOF2_GetInt(string2,"pSHealth");
        PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2,"PhoneNr");
        PlayerInfo[playerid][pPHousekey] = DOF2_GetInt(string2,"House");
        PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2,"Bizz");
        PlayerInfo[playerid][pCarLic] = DOF2_GetInt(string2,"CarLic");
        PlayerInfo[playerid][pFlyLic] = DOF2_GetInt(string2,"FlyLic");
        PlayerInfo[playerid][pBoatLic] = DOF2_GetInt(string2,"CarLic");
        PlayerInfo[playerid][pGunLic] = DOF2_GetInt(string2,"GunLic");
        PlayerInfo[playerid][pPayDay] = DOF2_GetInt(string2,"PayDay");
        PlayerInfo[playerid][pCDPlayer] = DOF2_GetInt(string2,"CDPlayer");
        PlayerInfo[playerid][pWins] = DOF2_GetInt(string2,"Wins");
        PlayerInfo[playerid][pLoses] = DOF2_GetInt(string2,"Loses");
        PlayerInfo[playerid][pDrugPerk] = DOF2_GetInt(string2,"DrugPerk");
        PlayerInfo[playerid][pMiserPerk] = DOF2_GetInt(string2,"MiserPerk");
        PlayerInfo[playerid][pPainPerk] = DOF2_GetInt(string2,"PainPerk");
        PlayerInfo[playerid][pTraderPerk] = DOF2_GetInt(string2,"TraderPerk");
        PlayerInfo[playerid][pTut] = DOF2_GetInt(string2,"Tutorial");
        PlayerInfo[playerid][pWarns] = DOF2_GetInt(string2,"Avisos");
        PlayerInfo[playerid][pMarried] = DOF2_GetInt(string2,"Married");

        strmid(PlayerInfo[playerid][pMarriedTo], DOF2_GetString(string2,"MarriedTo"), 0, strlen(DOF2_GetString(string2,"MarriedTo")), 255);

        PlayerInfo[playerid][pSpawn] = DOF2_GetInt(string2,"Spawn");
        PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2,"SafeMaconha");
        PlayerInfo[playerid][pSafeDrogas2] = DOF2_GetInt(string2,"SafeCocaina");
        PlayerInfo[playerid][pSafeDrogas3] = DOF2_GetInt(string2,"SafeCrack");
        PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2,"SafeMaconha");
        PlayerInfo[playerid][pSafeMat] = DOF2_GetInt(string2,"SafeMateriais");

        WantedPoints[playerid] = DOF2_GetInt(string2,"NivelProcurado");
        Dinamites[playerid] = DOF2_GetInt(string2,"Dinamites");
        PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2,"HelperLevel");
        Surpresas[playerid] = DOF2_GetInt(string2,"Surpresas");

        PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2,"Luta");
        PlayerInfo[playerid][pDrogado] = DOF2_GetInt(string2,"Drogado");
        PlayerInfo[playerid][pDrogado2] = DOF2_GetInt(string2,"Drogado2");
        PlayerInfo[playerid][pDoenca] = DOF2_GetInt(string2,"Doenca");
        PlayerInfo[playerid][pCreditos] = DOF2_GetInt(string2,"Creditos");

        PlayerInfo[playerid][pPos_x] = DOF2_GetFloat(string2,"Pos_x");
        PlayerInfo[playerid][pPos_y] = DOF2_GetFloat(string2,"Pos_y");
        PlayerInfo[playerid][pPos_z] = DOF2_GetFloat(string2,"Pos_z");

        PlayerInfo[playerid][pCarKey] = DOF2_GetInt(string2,"Carro1");
        PlayerInfo[playerid][pCarKey2] = DOF2_GetInt(string2,"Carro2");
        PlayerInfo[playerid][pEncrypt] = DOF2_GetInt(string2,"Encrypt");

    }
    else
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Play Online RPG", "Seja bem vindo ao Play Online RPG\n\nColoque sua Senha para se conectar ao Game", "Conectar","Sair");
        gPlayerLogTries[playerid] += 1;

        new string3[50];

        format(string3,sizeof(string3),"%d/5 erros.",gPlayerLogTries[playerid]);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,string3);

        if(gPlayerLogTries[playerid] == 5)
        {
            SendClientMessage(playerid,COLOR_LIGHTRED,"Vocк errou a senha cinco vezes e recebeu KICK.");
            SetTimerEx("KickPlayer",100,0,"i",playerid);
        }
        return 1;
    }
    OnPlayerRequestClass2(playerid);

    GameTextForPlayer(playerid,"~r~Bem vindo",1,3);

    TextDrawShowForPlayer(playerid,Reloginho1[playerid]); TextDrawShowForPlayer(playerid,Reloginho2[playerid]);

    ConsumingMoney[playerid] = 1;

    CurrentMoney[playerid] = GetPlayerMoneyEx(playerid);
    SetPlayerWantedLevel(playerid, WantedPoints[playerid]);

    if(PlayerInfo[playerid][pAdmin] == 9) { away[playerid] = 1; }

    ApresentarPlayer(playerid);
    ConectarPlayer(playerid);
    MostrarPlayer(playerid);

    if(PlayerInfo[playerid][pReg] == 0)
    {
        PlayerInfo[playerid][pLevel] = 1;
        PlayerInfo[playerid][pSHealth] = 0.0;
        PlayerInfo[playerid][pPos_x] = 2246.6;
        PlayerInfo[playerid][pPos_y] = -1161.9;
        PlayerInfo[playerid][pPos_z] = 1029.7;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pLocal] = 255;

        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 289; } else { PlayerInfo[playerid][pSkin] = 216; }
        new randphone = 1000 + random(100000);

        PlayerInfo[playerid][pPnumber] = randphone;
        PlayerInfo[playerid][pPHousekey] = 255;
        PlayerInfo[playerid][pPbiskey] = 255;
        PlayerInfo[playerid][pConta] = 10000;
        PlayerInfo[playerid][pReg] = 1;
        PlayerInfo[playerid][pProfissao] = 0;
        PlayerInfo[playerid][pKills] = 0;
        PlayerInfo[playerid][pDeaths] = 0;

        ResetPlayerMoneyEx(playerid);
    }
    if(PlayerInfo[playerid][pWarns] == 1)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк tem 1 aviso!");
    }
    if(PlayerInfo[playerid][pWarns] == 2)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк tem 2 avisos!");
    }
    if(PlayerInfo[playerid][pWarns] == 3)
    {
        PlayerInfo[playerid][pWarns] = 0;
    }
    VerOrg(playerid);
    DateProp(playerid);

    if(AdmCheck(playerid) == 0 && PlayerInfo[playerid][pAdmin] > 0)
    {
        PlayerInfo[playerid][pAdmin] = 0;
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк perdeu o seu Admin.");
    }
    if(HelperCheck(playerid) == 0 && PlayerInfo[playerid][pHelper] > 0)
    {
        PlayerInfo[playerid][pHelper] = 0;
        SendClientMessage(playerid, COLOR_YELLOW, "Vocк perdeu o seu Helper.");
    }
    SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    MedicBill[playerid] = 0;
    gPlayerLogged[playerid] = 1;
    SpawnPlayer(playerid);

    new tmp2[35]; format(tmp2, sizeof(tmp2), "~n~ ~w~Bem vindo ~n~~b~%s", PlayerName(playerid));
    GameTextForPlayer(playerid, tmp2, 5000, 3); ScoreLevel(playerid);

    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Admin %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pHelper] >= 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Helper %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pVIP] == 1)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~VIP %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(PlayerInfo[playerid][pVIP] == 2)
    {
        new AdminName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(gstring, sizeof(gstring), "~p~Socio %s: ~g~ON", AdminName);

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 3);
        }
    }
    if(strfind(PlayerName(playerid), "_Soon", true) != -1)
    {
        GameTextForPlayer(playerid,"~r~Familia Soon",5000,3);
        Familia[playerid] = 1;
    }
    else if(strfind(PlayerName(playerid), "_COP", true) != -1 || strfind(PlayerName(playerid), "_AppFTD", true) != -1)
    {
        GameTextForPlayer(playerid,"~r~Familia COP",5000,3);
        Familia[playerid] = 2;
    }
    else
    {
        Familia[playerid] = 0;
    }
    return 1;
}
Vlw aew
Reply
#8

Olha, esse bug, й de um GM da net, nгo й a primeira vez que ocorre, sabe uma boa para usar?
MySQL
Reply
#9

Bom conforme jб dito o ideal e usar MySQL hoje em dia estб evoluindo tudo concerteza e um GM da net ou algo do tipo.
Reply
#10

Quote:
Originally Posted by ViictorDaay-
Посмотреть сообщение
Bom conforme jб dito o ideal e usar MySQL hoje em dia estб evoluindo tudo concerteza e um GM da net ou algo do tipo.
Yep..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)