{"id":30714814,"url":"https://github.com/nexiustailer/alternative-dialogs","last_synced_at":"2026-02-11T07:31:46.203Z","repository":{"id":58885885,"uuid":"384684021","full_name":"NexiusTailer/Alternative-Dialogs","owner":"NexiusTailer","description":"Dialogs with a new design","archived":false,"fork":false,"pushed_at":"2024-03-25T13:33:40.000Z","size":39,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-03-25T15:21:15.934Z","etag":null,"topics":["alt-dialogs","altdialogs","amx","dialogs","inc","include","pawn","pawn-package","pawno","sa-mp","samp","sampctl","textdraw","textdraws"],"latest_commit_sha":null,"homepage":"https://pawn.wiki/index.php?/topic/29973-alternative-dialogs/","language":"Pawn","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NexiusTailer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"custom":["bank.gov.ua/en/about/support-the-armed-forces","bank.gov.ua/en/about/humanitarian-aid-to-ukraine"]}},"created_at":"2021-07-10T11:41:51.000Z","updated_at":"2024-02-24T19:57:50.000Z","dependencies_parsed_at":"2024-03-25T15:12:37.242Z","dependency_job_id":"6a095dc2-5bf3-4884-ae3a-53cb8e905f21","html_url":"https://github.com/NexiusTailer/Alternative-Dialogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NexiusTailer/Alternative-Dialogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexiusTailer%2FAlternative-Dialogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexiusTailer%2FAlternative-Dialogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexiusTailer%2FAlternative-Dialogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexiusTailer%2FAlternative-Dialogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NexiusTailer","download_url":"https://codeload.github.com/NexiusTailer/Alternative-Dialogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexiusTailer%2FAlternative-Dialogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273397842,"owners_count":25098234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alt-dialogs","altdialogs","amx","dialogs","inc","include","pawn","pawn-package","pawno","sa-mp","samp","sampctl","textdraw","textdraws"],"created_at":"2025-09-03T05:46:07.237Z","updated_at":"2026-02-11T07:31:46.165Z","avatar_url":"https://github.com/NexiusTailer.png","language":"Pawn","funding_links":["bank.gov.ua/en/about/support-the-armed-forces","bank.gov.ua/en/about/humanitarian-aid-to-ukraine"],"categories":[],"sub_categories":[],"readme":"# [Alternative Dialogs](https://pawn.wiki/index.php?/topic/29973-alternative-dialogs/)\nThese dialogs have nearly all of the functions that the default dialogs have, but they can be used together.  \nThe new design drawn via textdraws, it will radically change the interface of your server.\n\n## How do they look\nAD_STYLE_LIST / [SKINS](https://imgur.com/a/Vounp)  \n![](https://i.imgur.com/8sAdgUy.png)\n\nTo choose any of the available skins, just write the following before connecting the include:\n```pawn\n#define AD_SKIN_1 //1 - ID of the skin\n```\n\n## How to install\nSimply install to your project:\n```bash\nsampctl package install NexiusTailer/Alternative-Dialogs\n```\n\nInclude in your code and begin using the library:\n```pawn\n#include \u003calt_dialogs\u003e\n```\n\n## Functions\n* ShowPlayerAltDialog`(playerid, dialogid, style, caption[], info[], button1[], button2[] = \"\")`  \nUse to show the dialog for a player\n* OnAltDialogResponse`(playerid, dialogid, response, listitem)`  \nCalled when a player \"response\" on the dialog\n* GetPlayerAltDialog`(playerid)`  \nUse to get a player's current dialog ID\n\n## Usage example\n```pawn\npublic OnPlayerCommandText(playerid, cmdtext[])\n{\n\tif(!strcmp(\"/wdialog\", cmdtext, true)) return cmd_wdialog(playerid);\n\treturn 0;\n}\n\nforward cmd_wdialog(playerid);\npublic cmd_wdialog(playerid)\n{\n\tShowPlayerAltDialog(playerid, 0, AD_STYLE_LIST, \"Weapons\", \"AK47\\nM4\\nSniper Rifle\", \"Ok\", \"Cancel\");\n\treturn 1;\n}\n\npublic OnAltDialogResponse(playerid, dialogid, response, listitem)\n{\n\tif(dialogid == 0)\n\t{\n\t\tif(response == 1)\n\t\t{\n\t\t\tswitch(listitem)\n\t\t\t{\n\t\t\t\tcase 0: GivePlayerWeapon(playerid, 30, 100);\n\t\t\t\tcase 1: GivePlayerWeapon(playerid, 31, 100);\n\t\t\t\tcase 2: GivePlayerWeapon(playerid, 34, 50);\n\t\t\t}\n\t\t\treturn 1;\n\t\t}\n\t}\n\treturn 0;\n}\n```\n\n## Thanks\nZamaroht and adri1 for [Zamaroht's Textdraw Editor](https://sampforum.blast.hk/showthread.php?tid=406833)\n\n## Frequently asked Questions\n**Q:** How to hide the shown dialog?  \n**A:** This can be done like in default dialogs.  \nUse `ShowPlayerAltDialog` function, specifying `dialogid` parameter with the value of -1.\n\n**Q:** What does the `response` parameter mean with the value of 2 in `OnAltDialogResponse`?  \n**A:** This means that the dialog was closed by pressing the `\"cross\"` button or by `ESC`.\n\n**Q:** How to make the separate words in the dialog colored?  \n**A:** In this case you can use [that](https://sampwiki.blast.hk/wiki/GameText_Styles).\n\nThis section will be updated as questions are received.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexiustailer%2Falternative-dialogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexiustailer%2Falternative-dialogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexiustailer%2Falternative-dialogs/lists"}