Guest User

Untitled

a guest
Nov 9th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.41 KB | None | 0 0
  1. public OnPasswordResponse(playerid)
  2. {
  3.     new num_rows, num_fields;
  4.     cache_get_data(num_rows, num_fields, manomysql);
  5.     if(num_rows == 1)
  6.     {
  7.         //Slaptažodis teisingas
  8.         sInfo[playerid][kazkas] = 1;
  9.         TogglePlayerSpectating(playerid, 0);
  10.         ClearChat(playerid);
  11.         //SendClientMessage(playerid, MELYNA, "pasveikinimas");
  12.         sInfo[playerid][XP] = cache_get_field_content_int(0, "XP", manomysql);
  13.         SetPlayerScore(playerid, sInfo[playerid][XP]);
  14.         sInfo[playerid][id] = cache_get_field_content_int(0, "id", manomysql);
  15.         sInfo[playerid][lytis] = cache_get_field_content_int(0, "lytis", manomysql);
  16.         sInfo[playerid][pinigai] = cache_get_field_content_int(0, "pinigai", manomysql);
  17.         GivePlayerMoney(playerid, sInfo[playerid][pinigai]);
  18.         sInfo[playerid][adminlevel] = cache_get_field_content_int(0, "adminlevel", manomysql);
  19.         sInfo[playerid][skinas] = cache_get_field_content_int(0, "skinas", manomysql);
  20.         sInfo[playerid][zskinas] = cache_get_field_content_int(0, "zskinas", manomysql);
  21.         sInfo[playerid][dskinas] = cache_get_field_content_int(0, "dskinas", manomysql);
  22.         sInfo[playerid][VIP] = cache_get_field_content_int(0, "VIP", manomysql);
  23.         sInfo[playerid][p_x] = cache_get_field_content_int(0, "x", manomysql);
  24.         sInfo[playerid][p_y] = cache_get_field_content_int(0, "y", manomysql);
  25.         sInfo[playerid][p_z] = cache_get_field_content_int(0, "z", manomysql);
  26.         sInfo[playerid][MedikuDarbas] = cache_get_field_content_int(0, "MedikuDarbas", manomysql);
  27.         sInfo[playerid][MedDirektorius] = cache_get_field_content_int(0, "MedDirektorius", manomysql);
  28.         sInfo[playerid][MedPavaduotojas] = cache_get_field_content_int(0, "MedPavaduotojas", manomysql);
  29.         sInfo[playerid][MedRangas] = cache_get_field_content_int(0, "MedRangas", manomysql);
  30.         sInfo[playerid][TaxiDarbas] = cache_get_field_content_int(0, "TaxiDarbas", manomysql);
  31.         sInfo[playerid][TaxDirektorius] = cache_get_field_content_int(0, "TaxDirektorius", manomysql);
  32.         sInfo[playerid][TaxPavaduotojas] = cache_get_field_content_int(0, "TaxPavaduotojas", manomysql);
  33.         sInfo[playerid][TaxDirektorius] = cache_get_field_content_int(0, "TaxDirektorius", manomysql);
  34.     }
  35.     else
  36.     {
  37.         //Slaptažodis neteisingas
  38.         SendClientMessage(playerid, RAUDONA, "Neteisingas slaptažodis!");
  39.         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Prisijungimas", "Prašome įvesti slaptažodį!", "Prisijungti", "Išeiti");
  40.     }
  41.     return 1;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment