Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Senhadono[50] = "senhaaqui";
- //OnPlayerSpawn
- if(PlayerInfo[playerid][pAdmin] >= 1) // aq vc adapta com seu gm
- {
- Tentdono = 0;
- ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do\nAdministrador Dono","Confirmar","Cancelar");
- }
- //OnDialogResponse
- if(dialogid == 666)
- {
- if(response)
- {
- if(isnull(inputtext))
- {
- SendClientMessage(playerid, -1, "Digite Alguma Senha!");
- return ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do Administrador Dono","Confirmar","Cancelar");
- }
- if(Tentdono >= 3)
- {
- Kick(playerid);
- }
- if(strcmp(Senhadono,inputtext, true) == 0)
- {
- SendClientMessage(playerid, -1,"Senha Correta!! Bem Vindo!");
- return true;
- }
- else
- {
- SendClientMessage(playerid, -1, "A Senha está incorreta!");
- Tentdono++;
- return ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do Administrador Dono","Confirmar","Cancelar");
- }
- }
- else
- {
- Kick(playerid);
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement