Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_DONOVAN_PASS)
- {
- if(response)
- {
- if(strcmp(inputtext, DONOVAN_HESLO) == 0)
- {
- PlaySound(playerid, 21001, SOUND_RADIUS);
- ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid, 0x0797f7FF, "> Zadaný kód byl správný.");
- MoveObject(DonovanObj[28], 1792.43005, -1298.35974, 119.26010, 2.00, 0.00000, 0.00000, 338.93991);
- DonovanDoor = true;
- }
- else { SendClientMessage(playerid, 0x0797f7FF, "> Zadaný kód byl špatný."); }
- }
- else { ShowPlayerDialog(playerid, DIALOG_DONOVAN_PASS, DIALOG_STYLE_INPUT, "Kódový zámek", "Tyto dveře jsou na kódový zámek, zadej kód:", "Potvrdit", "Zrušit"); }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement