10.09.2018, 12:31
Bom dia,
Eu nгo sei o que pode ter ocorrido em meu gamemode, mas vamos lб, eu primeiramente adicionei um sistema de payday, funcionou que foi uma uva, tudo muito lindo, muito interessante, porйm, eu fui criar uma nova conta no servidor para ver se nгo estava bugada, e bom, estava, porйm, antes de adicionar esse sistema, estava funcionando normalmente, daн reverti tudo que fiz e pronto, continuou o mesmo problema, ao logar diz que a conta jб estб registrada e buga tudo, eu logo com qualquer senha nessa conta e nгo seta as configuraзхes iniciais.
Nгo faзo a menor ideia do que pode ter ocorrido.
Abraзos,
Raayzeck
Eu nгo sei o que pode ter ocorrido em meu gamemode, mas vamos lб, eu primeiramente adicionei um sistema de payday, funcionou que foi uma uva, tudo muito lindo, muito interessante, porйm, eu fui criar uma nova conta no servidor para ver se nгo estava bugada, e bom, estava, porйm, antes de adicionar esse sistema, estava funcionando normalmente, daн reverti tudo que fiz e pronto, continuou o mesmo problema, ao logar diz que a conta jб estб registrada e buga tudo, eu logo com qualquer senha nessa conta e nгo seta as configuraзхes iniciais.
Nгo faзo a menor ideia do que pode ter ocorrido.
pawn Код:
stock CriarConta(playerid)
{
DOF2_CreateFile(Player[playerid][PastaConta]);
DOF2_SetString(Player[playerid][PastaConta], "Senha", Player[playerid][SenhaDigitada]);
DOF2_SetInt(Player[playerid][PastaConta], "Dinheiro", 250000);
DOF2_SetInt(Player[playerid][PastaConta], "Level", 1);
DOF2_SetInt(Player[playerid][PastaConta], "Vip", 0);
DOF2_SetInt(Player[playerid][PastaConta], "Admin", 0);
DOF2_SetFloat(Player[playerid][PastaConta], "Vida", 100.0);
DOF2_SetFloat(Player[playerid][PastaConta], "Colete", 0.0);
DOF2_SetInt(Player[playerid][PastaConta], "Sexo", Player[playerid][Sexo]);
DOF2_SetInt(Player[playerid][PastaConta], "Skin", Player[playerid][Skin]);
//DOF2_SetInt(Player[playerid][PastaConta], "Horas", Player[playerid][ConnectTime]);
DOF2_SetInt(Player[playerid][PastaConta], "Matou", Player[playerid][MatouKD]);
DOF2_SetInt(Player[playerid][PastaConta], "Morreu", Player[playerid][MorreuKD]);
DOF2_SetInt(Player[playerid][PastaConta], "Profissao", Player[playerid][Profissao]);
DOF2_SaveFile();
Player[playerid][pLogado] = 1;
TogglePlayerSpectating(playerid, false);
CancelSelectTextDraw(playerid);
SpawnPlayer(playerid);
Player[playerid][Dinheiro]+=250000;
Player[playerid][Level]+=1;
//Player[playerid][ConnectTime]+=1;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerSkin(playerid, Player[playerid][Skin]);
SetPlayerPos(playerid, 1219.0356, -1428.0033, 13.3762);
SetPlayerFacingAngle(playerid, 358.5789);
SetCameraBehindPlayer(playerid);
return 1;
}
stock CarregarConta(playerid)
{
new string2[128];
Player[playerid][Dinheiro] = DOF2_GetInt(Player[playerid][PastaConta], "Dinheiro");
Player[playerid][Level] = DOF2_GetInt(Player[playerid][PastaConta], "Level");
Player[playerid][Vip] = DOF2_GetInt(Player[playerid][PastaConta], "Vip");
Player[playerid][Admin] = DOF2_GetInt(Player[playerid][PastaConta], "Admin");
Player[playerid][Vida] = DOF2_GetFloat(Player[playerid][PastaConta], "Vida");
Player[playerid][Colete] = DOF2_GetFloat(Player[playerid][PastaConta], "Colete");
Player[playerid][Sexo] = DOF2_GetInt(Player[playerid][PastaConta], "Sexo");
Player[playerid][Skin] = DOF2_GetInt(Player[playerid][PastaConta], "Skin");
// Player[playerid][ConnectTime] = DOF2_GetInt(Player[playerid][PastaConta], "Horas");
Player[playerid][MatouKD] = DOF2_GetInt(Player[playerid][PastaConta], "Matou");
Player[playerid][MorreuKD] = DOF2_GetInt(Player[playerid][PastaConta], "Morreu");
Player[playerid][Profissao] = DOF2_GetInt(Player[playerid][PastaConta], "Profissao");
SetPVarInt(playerid, "WarnningAimbot", DOF2_GetInt(string2, "AimBot"));
SetPVarInt(playerid, "WarnningMacro", DOF2_GetInt(string2, "AutoCbug"));
Player[playerid][pLogado] = 1;
TogglePlayerSpectating(playerid, false);
CancelSelectTextDraw(playerid);
SpawnPlayer(playerid);
GivePlayerMoney(playerid, Player[playerid][Dinheiro]);
SetPlayerScore(playerid, Player[playerid][Level]);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1219.0356, -1428.0033, 13.3762);
SetPlayerFacingAngle(playerid, 358.5789);
SetPlayerHealth(playerid, Player[playerid][Vida]);
SetPlayerArmour(playerid, Player[playerid][Colete]);
SetPlayerSkin(playerid, Player[playerid][Skin]);
SetCameraBehindPlayer(playerid);
if(Player[playerid][Admin] == 1) { aRank = "Temporбrio"; }
else if(Player[playerid][Admin] == 2) { aRank = "Administrador level 2"; }
else if(Player[playerid][Admin] == 3) { aRank = "Administrador level 3"; }
else if(Player[playerid][Admin] == 4) { aRank = "Administrador level 4"; }
else if(Player[playerid][Admin] == 5) { aRank = "Administrador level 5"; }
else if(Player[playerid][Admin] == 1337) { aRank = "Administrador Master"; }
else if(Player[playerid][Admin] == 1338) { aRank = "Administrador responsavel pelos Lideres"; }
else if(Player[playerid][Admin] == 1339) { aRank = "Administrador responsavel pelos Helpers"; }
else if(Player[playerid][Admin] == 1340) { aRank = "Gerente"; }
else if(Player[playerid][Admin] == 3000) { aRank = "Sub dono"; }
else if(Player[playerid][Admin] == 5000) { aRank = "Dono"; }
if(Player[playerid][Vip] == 0) { vRank = "FREE"; }
else if(Player[playerid][Vip] == 1) { vRank = "VIP"; }
else if(Player[playerid][Vip] == 2) { vRank = "SUPER-VIP"; }
else if(Player[playerid][Vip] == 3) { vRank = "VIP SУCIO"; }
if (Player[playerid][Vip] >= 0)
{
new string[MAX_STRING];
format(string, sizeof(string), "Bem vindo ao Brasil PlayPerfect.");
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), "Vocк logou como um player %s.", vRank);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(Player[playerid][Admin] >= 1)
{
AdminTrabalhando[playerid] = 1;
new string[MAX_STRING];
format(string, sizeof(string), "Vocк logou como administrador %s em modo trabalho. /jogar para sair.", aRank);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
return 1;
}
stock SalvarConta(playerid)
{
//Save
if(DOF2_FileExists(Player[playerid][PastaConta]))
{
new string3[128];
Player[playerid][Dinheiro] = GetPlayerMoney(playerid);
GetPlayerHealth(playerid, Player[playerid][Vida]);
GetPlayerArmour(playerid, Player[playerid][Colete]);
Player[playerid][Skin] = GetPlayerSkin(playerid);
DOF2_SetInt(Player[playerid][PastaConta], "Dinheiro", Player[playerid][Dinheiro]);
DOF2_SetInt(Player[playerid][PastaConta], "Level", Player[playerid][Level]);
DOF2_SetInt(Player[playerid][PastaConta], "Vip", Player[playerid][Vip]);
DOF2_SetInt(Player[playerid][PastaConta], "Admin", Player[playerid][Admin]);
DOF2_SetFloat(Player[playerid][PastaConta], "Vida", Player[playerid][Vida]);
DOF2_SetFloat(Player[playerid][PastaConta], "Colete", Player[playerid][Colete]);
DOF2_SetInt(Player[playerid][PastaConta], "Sexo", Player[playerid][Sexo]);
DOF2_SetInt(Player[playerid][PastaConta], "Skin", Player[playerid][Skin]);
//DOF2_SetInt(Player[playerid][PastaConta], "Horas", Player[playerid][ConnectTime]);
DOF2_SetInt(Player[playerid][PastaConta], "Matou", Player[playerid][MatouKD]);
DOF2_SetInt(Player[playerid][PastaConta], "Morreu", Player[playerid][MorreuKD]);
DOF2_SetInt(Player[playerid][PastaConta], "Profissao", Player[playerid][Profissao]);
DOF2_SetInt(string3,"AimBot", GetPVarInt(playerid,"WarnningAimbot"));
DOF2_SetInt(string3,"AutoCbug", GetPVarInt(playerid, "WarnningMacro"));
DOF2_SaveFile();
}
//Kill Timers
KillTimer(Player[playerid][PlayerTimerGroupOneID]);
//Reset variaveis
Player[playerid][Dinheiro] = 0;
Player[playerid][Level] = 0;
Player[playerid][Vip] = 0;
Player[playerid][Admin] = 0;
Player[playerid][pLogado] = 0;
ResetStringPassword(Player[playerid][SenhaDigitada], Player[playerid][OutputSenha]);
format(Player[playerid][SenhaDigitada], 30, "");
Player[playerid][Vida] = 0.0;
Player[playerid][Colete] = 0.0;
Player[playerid][Sexo] = 0;
Player[playerid][Skin] = 0;
Player[playerid][Profissao] = 0;
//Player[playerid][ConnectTime] = 0;
ChatKill[playerid] = false;
format(Player[playerid][Nome], MAX_PLAYER_NAME, "");
format(Player[playerid][PastaConta], 50, "");
Player[playerid][LiberarSetinha] = 0;
return 1;
}
Raayzeck