Guest User

pin

a guest
Feb 13th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. CMD:changepin( playerid, params[ ] )
  2. {
  3. if(PlayerInfo[playerid][SecurityCode] == 0)
  4. {
  5. ShowPlayerDialog(playerid,DIALOG_SET_PIN,DIALOG_STYLE_PASSWORD,"Lock Account", "Te rugam introdu mai jos un pin de 4 cifre.\n\n{FF0000}* Te rugam sa fii foarte atent si sa retii pinul.","Seteaza","Anuleaza");
  6. }
  7. else if(GetPVarInt(playerid, "AccountLocked") == 0)
  8. {
  9. ShowPlayerDialog(playerid,DIALOG_SET_PIN,DIALOG_STYLE_PASSWORD,"Lock Account", "Te rugam introdu mai jos un pin de 4 cifre.\n\n{FF0000}* Te rugam sa fii foarte atent si sa retii pinul.","Seteaza","Anuleaza");
  10. }
  11. return ( 1 ) ;
  12. }
  13. CMD:lockacc( playerid, params[ ] )
  14. {
  15. if(PlayerInfo[playerid][SecurityCode] == 0)
  16. {
  17. ShowPlayerDialog(playerid,DIALOG_SET_PIN,DIALOG_STYLE_PASSWORD,"Lock Account", "Te rugam introdu mai jos un pin de 4 cifre.\n\n{FF0000}* Te rugam sa fii foarte atent si sa retii pinul.","Seteaza","Anuleaza");
  18. }
  19. else if ( PlayerInfo[ playerid ][ SecurityCode ] != 0 )
  20. {
  21. SCM(playerid, COLOR_YELLOW, "Contul tau are deja un PIN setat.") ;
  22. }
  23. return ( 1 ) ;
  24. }
  25.  
  26. CMD:unlockacc( playerid, params[ ] )
  27. {
  28. if ( UnlockaccWait[ playerid ] != 0 )
  29. return SCM(playerid, COLOR_YELLOW, "Poti folosii aceasta comanda in 30 secunde.");
  30.  
  31. if ( PlayerInfo[ playerid ][ SecurityCode ] == 0 )
  32. {
  33. SCM(playerid, COLOR_YELLOW, "Contul tau nu are nici un PIN setat." ) ;
  34. ShowPlayerDialog( playerid, DIALOG_SET_PIN, DIALOG_STYLE_PASSWORD, "Lock Account", "Te rugam introdu mai jos un pin de 4 cifre.\n\n{FF0000}* Te rugam sa fii foarte atent si sa retii pinul.", "Seteaza", "Anuleaza" ) ;
  35. }
  36. if(GetPVarInt(playerid, "AccountLocked") == 0)
  37. {
  38. SCM(playerid, COLOR_YELLOW, "Contul tau este deja deblocat!");
  39. }
  40. else if ( PlayerInfo[ playerid ][ SecurityCode ] != 0 )
  41. {
  42. ShowPlayerDialog( playerid, DIALOG_UNLOCKACC, DIALOG_STYLE_PASSWORD, "Unlock Account", "Te rugam introdu mai jos PIN-ul contului tau.", "Acces", "Anuleaza" ) ;
  43. }
  44. return ( 1 ) ;
  45. }
Add Comment
Please, Sign In to add comment