Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.98 KB | None | 0 0
  1. DiALOG::DIALOG_PATIKRINTI(playerid, response, listitem, inputtext[])
  2. {
  3.     YES
  4.     {
  5.         new
  6.             plid,
  7.             masyvas[50],
  8.             masyvas2[150],
  9.             dirzomasyvas[12]
  10.         ;
  11.         if(sscanf(inputtext, "s", plid)) return Dialog_Show(playerid, DIALOG_PATIKRINTI, DIALOG_STYLE_MSGBOX, "Žaidėjo patikra", "Įveskite žaidėjo vardą kurį norite patikrinti", "Tikrinti", "Išeiti");
  12.         if(!ON(plid)) return SendPDMSG(playerid, "Tokio žaidėjo nėra");
  13.         if(!PLAYER::pSurakintas(plid)) return SendPDMSG(playerid, "Žaidėjas privalo būti surakintas");
  14.         format(masyvas, sizeof(masyvas), "Žaidėjo %s patikra", GetPlayerNameEx(plid));
  15.         if(PLAYER::pDirzas(plid)) format(dirzomasyvas, sizeof(dirzomasyvas), "Užsegtas");
  16.         else format(dirzomasyvas, sizeof(dirzomasyvas), "Neužsegtas");
  17.         format(masyvas2, sizeof(masyvas2), "Gaudomumas: %d\nSaugos diržas: %s", PLAYER::pIeskomumas(plid), dirzomasyvas);
  18.         Dialog_Show(playerid, DIALOG_NERA, DIALOG_STYLE_MSGBOX, masyvas, masyvas2, "Supratau", "");
  19.     }
  20.     return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement