Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:changepin( playerid, params[ ] )
- {
- if(PlayerInfo[playerid][SecurityCode] == 0)
- {
- 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");
- }
- else if(GetPVarInt(playerid, "AccountLocked") == 0)
- {
- 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");
- }
- return ( 1 ) ;
- }
- CMD:lockacc( playerid, params[ ] )
- {
- if(PlayerInfo[playerid][SecurityCode] == 0)
- {
- 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");
- }
- else if ( PlayerInfo[ playerid ][ SecurityCode ] != 0 )
- {
- SCM(playerid, COLOR_YELLOW, "Contul tau are deja un PIN setat.") ;
- }
- return ( 1 ) ;
- }
- CMD:unlockacc( playerid, params[ ] )
- {
- if ( UnlockaccWait[ playerid ] != 0 )
- return SCM(playerid, COLOR_YELLOW, "Poti folosii aceasta comanda in 30 secunde.");
- if ( PlayerInfo[ playerid ][ SecurityCode ] == 0 )
- {
- SCM(playerid, COLOR_YELLOW, "Contul tau nu are nici un PIN setat." ) ;
- 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" ) ;
- }
- if(GetPVarInt(playerid, "AccountLocked") == 0)
- {
- SCM(playerid, COLOR_YELLOW, "Contul tau este deja deblocat!");
- }
- else if ( PlayerInfo[ playerid ][ SecurityCode ] != 0 )
- {
- ShowPlayerDialog( playerid, DIALOG_UNLOCKACC, DIALOG_STYLE_PASSWORD, "Unlock Account", "Te rugam introdu mai jos PIN-ul contului tau.", "Acces", "Anuleaza" ) ;
- }
- return ( 1 ) ;
- }
Add Comment
Please, Sign In to add comment