Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DiALOG::DIALOG_PATIKRINTI(playerid, response, listitem, inputtext[])
- {
- YES
- {
- new
- plid,
- masyvas[50],
- masyvas2[150],
- dirzomasyvas[12]
- ;
- 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");
- if(!ON(plid)) return SendPDMSG(playerid, "Tokio žaidėjo nėra");
- if(!PLAYER::pSurakintas(plid)) return SendPDMSG(playerid, "Žaidėjas privalo būti surakintas");
- format(masyvas, sizeof(masyvas), "Žaidėjo %s patikra", GetPlayerNameEx(plid));
- if(PLAYER::pDirzas(plid)) format(dirzomasyvas, sizeof(dirzomasyvas), "Užsegtas");
- else format(dirzomasyvas, sizeof(dirzomasyvas), "Neužsegtas");
- format(masyvas2, sizeof(masyvas2), "Gaudomumas: %d\nSaugos diržas: %s", PLAYER::pIeskomumas(plid), dirzomasyvas);
- Dialog_Show(playerid, DIALOG_NERA, DIALOG_STYLE_MSGBOX, masyvas, masyvas2, "Supratau", "");
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement