Advertisement
Mikael5515

senha adm

Oct 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. new Senhadono[50] = "senhaaqui";
  2.  
  3. //OnPlayerSpawn
  4. if(PlayerInfo[playerid][pAdmin] >= 1) // aq vc adapta com seu gm
  5. {
  6. Tentdono = 0;
  7. ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do\nAdministrador Dono","Confirmar","Cancelar");
  8. }
  9.  
  10.  
  11. //OnDialogResponse
  12.  
  13. if(dialogid == 666)
  14. {
  15. if(response)
  16. {
  17. if(isnull(inputtext))
  18. {
  19. SendClientMessage(playerid, -1, "Digite Alguma Senha!");
  20. return ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do Administrador Dono","Confirmar","Cancelar");
  21. }
  22. if(Tentdono >= 3)
  23. {
  24. Kick(playerid);
  25. }
  26. if(strcmp(Senhadono,inputtext, true) == 0)
  27. {
  28. SendClientMessage(playerid, -1,"Senha Correta!! Bem Vindo!");
  29. return true;
  30. }
  31. else
  32. {
  33. SendClientMessage(playerid, -1, "A Senha está incorreta!");
  34. Tentdono++;
  35. return ShowPlayerDialog(playerid,666, DIALOG_STYLE_INPUT, "Senha Dono","Digite a Senha Corretamente do Administrador Dono","Confirmar","Cancelar");
  36. }
  37. }
  38. else
  39. {
  40. Kick(playerid);
  41. return 1;
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement