Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 0000000000 0000000000 0000000000 00000000000 0000000000 00 00 0000000000 0000000000
- 00 00 00 00 00 00 00 00 00 00 00 00
- 00 00 00 00 00 00 00 00 00 00 00 00
- 00 00 00 0000000000 0000000000 00 00 00 00 0000000 0000000
- 00 00 00 00 00 00 00 0000 00 00 00
- 00 00 00 00 00 00 00 00 00 00 00 00
- 0000000000 0000000000 00 0000000000 0000000000 00 0000 0000000000 0000000000*/
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" FS: JOPSONEE_PICKUPS STARTED! ");
- print("--------------------------------------\n");
- return 1;
- }
- new j_string[256];
- forward J_pickup(string[]);
- public J_pickup(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("/J_pickup.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- CMD:napravipickup(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xC9C9C9, " (greska!) Niste ovlasteni da koristite ovu komandu!");
- {
- ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST, "Izaberi pickup:", "Health\nArmour\nInfo icon\nBlue house\nGreen house\nCash\nAdrenaline\nBribe\nGTA III sign\nBomb from GTA III\nPhoto op\nSkull\nMoney icon\nBlue t-shirt\nSave disk\n2 Skulls\n2 Players icon\nTiki statue\nParachute (with leg straps)\nDown arrow\nDrug bundle", "Postavi", "Napusti");
- TogglePlayerControllable(playerid,0);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new Float:x, Float:y, Float:z;
- if(!response)
- {
- SendClientMessage(playerid,0xDABB3EAA,"J_pickup {FFFFFF} | Za ponovo pokretanje dinamickog sustava za pravljenje pickupa upisi: /napravipickup");
- }
- if(response)
- {
- switch(dialogid)
- {
- case 0:
- {
- switch(listitem)
- {
- case 0:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1240, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Health , ID pickupa : 1240!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1240,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Health", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Health , ID pickupa : 1240!");
- }
- case 1:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1242, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Armour , ID pickupa : 1242!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1242,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Armour", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Armour , ID pickupa : 1242!");
- }
- case 2:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1239, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Info icon , ID pickupa : 1239!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1239,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Info icon", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Info icon , ID pickupa : 1239!");
- }
- case 3:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1272, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Blue house , ID pickupa : 1272!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1272,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Blue house", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Blue house , ID pickupa : 1272!");
- }
- case 4:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1273, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Green house , ID pickupa : 1273!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1273,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Green house", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Green house , ID pickupa : 1273!");
- }
- case 5:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1212, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Cash , ID pickupa : 1212!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1212,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Cash", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Cash , ID pickupa : 1212!");
- }
- case 6:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1241, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Adrenaline , ID pickupa : 1241!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1241,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Adrenaline", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Adrenaline , ID pickupa : 1241!");
- }
- case 7:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1247, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Bribe , ID pickupa : 1247!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1247,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Bribe", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Bribe , ID pickupa : 1247!");
- }
- case 8:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1248, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : GTA III sign , ID pickupa : 1248!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1248,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~GTA 3 sign", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : GTA III sign , ID pickupa : 1248!");
- }
- case 9:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1252, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Bomb from GTA III , ID pickupa : 1252!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1252,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid," ~w~ pickup:~b~Bomb from gta 3", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Bomb from GTA III , ID pickupa : 1252!");
- }
- case 10:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1253, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Photo op , ID pickupa : 1253!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1253,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Photo op", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Photo op , ID pickupa : 1253!");
- }
- case 11:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1254, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Skull , ID pickupa : 1254!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1254,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Skull", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Skull , ID pickupa : 1254!");
- }
- case 12:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1274, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Money icon , ID pickupa : 1274!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1274,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Money icon", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Money icon , ID pickupa : 1274!");
- }
- case 13:// The first item listed
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1275, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Blue t-shirt , ID pickupa : 1275!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1275,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Blue t-shirt", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Blue t-shirt , ID pickupa : 1275!");
- }
- case 14:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1277, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Save disk , ID pickupa : 1277!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1277,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Save disk", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Save disk , ID pickupa : 1277!");
- }
- case 15:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1313, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : 2 Skulls , ID pickupa : 1313!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1313,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~2 Skulls", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : 2 Skulls , ID pickupa : 1313!");
- }
- case 16:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1314, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : 2 Players icon , ID pickupa : 1314!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1314,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~2 Player icon", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : 2 Players icon , ID pickupa : 1314!");
- }
- case 17:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1276, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Tiki statue , ID pickupa : 1276!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1276,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Tiki statue", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Tiki statue , ID pickupa : 1276!");
- }
- case 18:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1310, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Parachute (with leg straps) , ID pickupa : 1310!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1310,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Parachute (with leg straps)", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Parachute (with leg straps) , ID pickupa : 1310!");
- }
- case 19:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1318, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Down arrow , ID pickupa : 1318!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1318,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Down arrow", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Down arrow , ID pickupa : 1318!");
- }
- case 20:
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid, x, y, z);
- CreatePickup(1279, 1, x, y, z);
- SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Drug bundle , ID pickupa : 1279!");
- format(j_string, sizeof(j_string), "AddStaticPickup(1279,1,%f,%f,%f);\r\n", x,y,z);
- J_pickup(j_string);
- GameTextForPlayer(playerid,"~w~pickup:~b~Drug bundle", 2000, 1);
- print(" Pickup kreiran | Vrsta pickupa : Drug bundle , ID pickupa : 1279!");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment