Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- // kolory
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_ADMIN 0xFF0000AA
- #define COLOR_RED 0xAA3333AA
- #define DIALOGID 6969 //Kolor Menu
- new Pickup[2];// tworzy pickup
- public OnFilterScriptInit()
- {
- Create3DTextLabel( "{FF4500}Sklep PL", COLOR_WHITE, -245.9526,2611.1072,62.8582,333.0,0);//S.W.A.T
- Create3DTextLabel( "{FF4500}Sklep USA", COLOR_WHITE, 395.4496,2460.2681,16.5000,37.0,0);//Terrorysci
- Pickup[0] = CreatePickup(1274,1,-245.9526,2611.1072,62.8582);// dodaje go do mapy
- Pickup[1] = CreatePickup(1274,1,395.4496,2460.2681,16.5000);// dodaje go do mapy
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Pickup[0])
- {
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "{FFFF00}Kup Broń:", "{FFD700}Nóż-500$\n{FF4500}Piła Łańcuchowa-1000$\n{FFFFFF}Koktail Mołotowa-2000$\n{FF0000}Micro UZI-4000$\n{00FF00}AK-47-4000$\n{FFD700}Snajperka-5000$\n{6A5ACD}9mm+Tłumnik-2000$\n{00CED1}Życie 100Hp-1000$\n{FF0000}Kamizelka 100Hp-1000$", "Kup", "Wyjdz");
- }
- if(pickupid == Pickup[1])
- {
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "{FFFF00}Kup Broń:", "{FFD700}Nóż-500$\n{FF4500}Piła Łańcuchowa-1000$\n{FFFFFF}Koktail Mołotowa-2000$\n{FF0000}Micro UZI-4000$\n{00FF00}AK-47-4000$\n{FFD700}Snajperka-5000$\n{6A5ACD}9mm+Tłumnik-2000$\n{00CED1}Życie 100Hp-1000$\n{FF0000}Kamizelka 100Hp-1000$", "Kup", "Wyjdz");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOGID && response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 4, 150);
- GivePlayerMoney(playerid, -500);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 9, 200);
- GivePlayerMoney(playerid, -1000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 18, 5);
- GivePlayerMoney(playerid, -2000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 28, 100);
- GivePlayerMoney(playerid, -4000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 30, 50);
- GivePlayerMoney(playerid, -4000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 34, 20);
- GivePlayerMoney(playerid, -5000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 23, 50);
- GivePlayerMoney(playerid, -2000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 7:
- {
- SetPlayerHealth(playerid,100.0);
- GivePlayerMoney(playerid, -1000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- case 8:
- {
- SetPlayerArmour(playerid,100.0);
- GivePlayerMoney(playerid, -1000);
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment