30/05/2022 15:36
(Esta mensagem foi modificada pela última vez a: 30/05/2022 15:53 por Brunocolaco.)
(30/05/2022 14:34)White_Blue Escreveu: Provavelmente você não está salvando a senha corretamente, deixa o código do sistema de registro para podermos análisar.Creio que seja isso
public OnPlayerConnect(playerid)
{
CriarTDCelular(playerid);
new str[225];
format(str, sizeof(str), "[%d]", playerid);
playerID[playerid] = Create3DTextLabel(str, 0x1E90FFFF, 0, 0, 0, 10, 0);
Attach3DTextLabelToPlayer(playerID[playerid], playerid, 0.0, 0.0, 0.1);
new fileyt[144];
format(fileyt, 144, "YouTuber/%s.ini", PlayerName(playerid));
if(DOF2_FileExists(fileyt))
{
YouTuber[playerid] = DOF2_GetInt(fileyt, "YouTuber");
}
JBL[playerid] = -1;
CriarTDVelocimetro(playerid);
PlayerVelocimetro[playerid] = false;
KillTimer(PlayerVelocimetroTimer[playerid]);
OlhandoCelular[playerid] = 0;
TDRG(playerid);
//-------------------------------------------------------------------------//
new string[128];
/*new TSerial[50], Nick[128];
GetPlayerName(playerid, Nick, sizeof(Nick));
gpci(playerid, TSerial, sizeof(TSerial));
print("==========================================================");
printf("PlayerID [%s] Serial [%s]", Nick, TSerial);
print("==========================================================");
if(strcmp(TSerial, "5638413348335738345A4536524D4A524539334B", true)){
format(string,sizeof(string),"PermaAPK/%s",Nick);
if(!DOF2_FileExists(string)){
ShowPlayerDialog(playerid,5000,DIALOG_STYLE_MSGBOX,"[ {0000FF}MTV RolePlay {FFFFFF}] {FF8000}Voce nao esta utilizando o novo APK do MTV","{FFFFFF}Voce esta usando um {FF9D9D}apk {FFFFFF}nao compativel com o {FF00FF}MTV{FFFFFF}\npor este motivo voce nao podera jogar no momento.\n \nBaixe o novo APK oficial do MTV no Site de Download, Discord ou YouTuber.\nCe voce joga pelo {FF8000}COMPUTADOR {FFFFFF}deixe seu nick no Discord, na aba (APROVAR NICK).\n \n{00FF00}SITE: {FFFFFF}https://discord.gg/s9pF6MQrJe\n{00FF00}DISCORD: {FFFFFF}discord.me/MTVRP\n{00FF00}YOUTUBE: {FFFFFF}https://youtu.be/AtxVtGtCYN0","INFORMADO","");
SetTimerEx("Kickar", 800, false,"i",playerid);
printf("Player %s[%d] Kickado Por Usar Apk/PC Nao Permitido",Nick, playerid);
return 1;
}
}*/
// == [ Salvar IP do player (log) ] == //
new ipstring[30];
new connecting_ip[32+1];
GetPlayerIp(playerid, connecting_ip, sizeof(connecting_ip));
format(ipstring, 30, "%s IP: %s", PlayerName(playerid),connecting_ip);
IPlog(ipstring);
// == [ Salvar Serial do player (log) ] == //
new serialstring[80];
format(serialstring, sizeof(serialstring), "%s Serial: %s",PlayerName(playerid), GetPlayerSerial(playerid));
SerialLog(serialstring);
// anti-bot
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if (num_players_on_ip > MAX_CONNECTIONS_FROM_IP)
{
printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
Kick(playerid);
}
VerBan(playerid);
VerBanTemp(playerid);
VerBanSerial(playerid);
// anti-nick incorreto
if(strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1
|| strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "BPR", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ":", true) != -1
|| strfind(PlayerName(playerid), "*", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1 || strfind(PlayerName(playerid), "HAX4", true) != -1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "Voce Foi Kickado por usar algum nome incorreto!");
SendClientMessage(playerid, COR_LIGHTBLUE, "Seu nome deve ser no formato Nome_Sobrenome Ex: Guru_Josh");
SendClientMessage(playerid, COR_LIGHTBLUE, "Troque-o e volte, Obrigado.");
Kick(playerid);
return 1;