daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest May 26th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(dialogid == 12346 || dialogid == 12347)
  2.     {
  3.         if(!response) return Kick(playerid);
  4.         if(response)
  5.         {
  6.             if(strlen(inputtext))
  7.             {
  8.                 new tmppass[64];
  9.                 strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  10.                 OnPlayerLogin(playerid,tmppass);
  11.             }
  12.             else
  13.             {
  14.                 new loginstring[128];
  15.                 new loginname[256];
  16.                 GetPlayerName(playerid,loginname,sizeof(loginname));
  17.                 format(loginstring,sizeof(loginstring),"POGRESAN PASSWORD\nMolimo unesite tacno:",loginname);
  18.                 ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
  19.                 gPlayerLogTries[playerid] += 1;
  20.                 if(gPlayerLogTries[playerid] == 5)
  21.                 {
  22.                     Ban(playerid);
  23.                 }
  24.             }
  25.         }
  26.     }
  27.     if(dialogid == 12345)
  28.     {
  29.         if(!response) return Kick(playerid);
  30.         if(response)
  31.         {
  32.             if(strlen(inputtext))
  33.             {
  34.                 GetPlayerName(playerid, sendername, sizeof(sendername));
  35.                 format(string, sizeof(string), "%s.ini", sendername);
  36.                 new File: hFile = fopen(string, io_read);
  37.                 if (hFile)
  38.                 {
  39.                     SendClientMessage(playerid, COLOR_YELLOW, "Ovo ime vec postoji,molimo izaberite drugo.");
  40.                     fclose(hFile);
  41.                     return 1;
  42.                 }
  43.                 new tmppass[64];
  44.                 strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  45.                 OnPlayerRegister(playerid,tmppass);
  46.             }
  47.             else
  48.             {
  49.                 new regstring[128];
  50.                 new regname[256];
  51.                 GetPlayerName(playerid,regname,sizeof(regname));
  52.                 format(regstring,sizeof(regstring),"Dobrodosli, %s\nNemate korisnicki racun.\nMolimo vas upisite svoju lozinku i registrirajte se:",regname);
  53.                 ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Registriraj se","Izadji");
  54.             }
  55.         }
  56.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top