logando com qualquer senha
#1

Код:
	gPlayerAccount[playerid] = 1;
		new loginstring[128];
		new loginname[64];
		GetPlayerName(playerid,loginname,sizeof(loginname));
		format(loginstring,sizeof(loginstring),"Bem-Vindo ao [BLG] Roleplay\nNome: %s\n\nPor favor insira sua senha:",loginname);
		ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Brasil Lord Games RolePlay - LOGIN",loginstring,"Logar","Sair");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		return 1;
	}
	else
	{
		gPlayerAccount[playerid] = 0;
 		new regstring[128];
		new regname[64];
		GetPlayerName(playerid,regname,sizeof(regname));
		format(regstring,sizeof(regstring),"Bem-Vindo ao LS Life Roleplay\nConta nгo Registrada\nNome: %s\n\nPor favor insira sua senha:",regname);
		ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Brasil Lord Games RolePlay - REGISTRO",regstring,"Registrar","Sair");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
		SendClientMessage(playerid, COLOR_WHITE, " ");
	}
    GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
    if(strcmp(playername,"Batman",true) == 0 || strcmp(playername,"Rocky",true) == 0 || strcmp(playername,"Carl",true) == 0 || strcmp(playername,"aux",true) == 0 || strcmp(playername,"con",true) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "...");
		Ban(playerid);
		return 1;
	}
    if(strfind(playername,"_",true,1)!=-1)
    gw=1;
    if(playername[strlen(playername)-1]=='_')
    gw=0;
    for(new i=0;i<strlen(playername);i++)
    if((playername[i]<='9')&&(playername[i]>='0'))
    gw=0;
    if(!gw)
    {
		SendClientMessage(playerid, COLOR_YELLOW2, "Imigraзгo Brasil Lord Games: Seu nome nгo foi aceito em nossa agкncia.");
		SendClientMessage(playerid, COLOR_YELLOW2, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
		Kick(playerid);
	}
	return 1;
}
nгo sei se mandei o certo mais se foi o errado me ajuda ae me falando qual o certo
Reply
#2

baa cara eu ja tive o mesmo problema mas agora nгo estou me lembrando oque eu fis caso eu me lembrar teu ajudarei =D
Reply
#3

fmz cara
Reply
#4

O problema nгo estб aн, o problema estб em onplayerlogin... vc deve ter editado algo errado
Reply
#5

sao todas as contas ? eu tinha um gm que depois que eu editava a conta pelos scriptfiles pra colocar meu adm e tals, logava com qualquer senha, mais sу a minha, se forem todas, nem sei,
Reply
#6

Deleta todas as contas e cria uma nova que resolve acho
Reply
#7

Tbm tenho esse problema
Reply
#8

Sу colocar uma exclamaзгo, exemplo: if(!stcmp(...))

Exclamaзгo antes em condicional significa que pode retornar true ou false. Nesse caso acima ele vai comparar strings e se estiver correto vai executar tal funзгo, senгo retorna false, acho que deu pra entender...
Reply
#9

Quote:
Originally Posted by elTioFrame
Посмотреть сообщение
Sу colocar uma interrogaзгo, exemplo: if(!stcmp(...))

Interrogaзгo antes em condicional significa que pode retornar true ou false. Nesse caso acima ele vai comparar strings e se estiver correto vai executar tal funзгo, senгo retorna false, acho que deu pra entender...
Interrogaзгo? rsrs
Reply
#10

Quote:
Originally Posted by BrunoSayden177
Посмотреть сообщение
Interrogaзгo? rsrs
kkkkkkkkkk nossa mosquei feio agr ein, tmb to mo brisado aqui nem sei oq to escrevendo kk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)