Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #define DIALOGID 2
- #define COLOR_RED 0xAA3333AA
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Weapons Dialog By Zeal");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print("Weapons Dialog By Zeal");
- print("----------------------------------\n");
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerSpawn(playerid)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Weapons Packages By Zeal", "Package 1\nPackage 2", "Select", "Exit");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2)
- {
- if(response)
- {
- new message[256+1];
- if(listitem == 0)
- GivePlayerWeapon(playerid, 28, 5000);
- GivePlayerWeapon(playerid, 26, 5000);
- GivePlayerWeapon(playerid, 30, 5000);
- GivePlayerWeapon(playerid, 24, 5000);
- SendClientMessage(playerid, COLOR_RED, "You picked Package 1 - Shawn-OFF Shotgun, UZI, Desert Eagle, AK47. Each weapon with 5000 bullets.");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 29, 5000);
- GivePlayerWeapon(playerid, 31, 5000);
- GivePlayerWeapon(playerid, 34, 5000);
- GivePlayerWeapon(playerid, 25, 5000);
- SendClientMessage(playerid, COLOR_RED, "You picked Package 2 - MP5, M4, Sniper, ShotGun Each weapon with 5000 bullets ");
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement