Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PackageWeapons[][WeaponData] = {
- {"9mm", WEAPON_COLT45, 100},
- {"Silence 9mm", WEAPON_SILENCED, 100},
- {"Desert Eagle", WEAPON_DEAGLE, 50},
- {"Shotgun", WEAPON_SHOTGUN, 50},
- {"Sawnoff Shotgun", WEAPON_SAWEDOFF, 50},
- {"Combat Shotgun", WEAPON_SHOTGSPA, 50},
- {"Micro SMG", WEAPON_UZI, 100},
- {"SMG", WEAPON_MP5, 50},
- {"AK47", WEAPON_AK47, 100},
- {"M4", WEAPON_M4, 100},
- {"Tec9", WEAPON_TEC9, 100},
- {"Rifle", WEAPON_RIFLE, 40},
- {"Sniper Rifle", WEAPON_SNIPER, 20},
- {"Rocket Launcher", WEAPON_ROCKETLAUNCHER, 5},
- {"Flamethrower", WEAPON_FLAMETHROWER, 40}, // btwn i got 2 ammo for FLAME h0w when i took package xD wtf
- {"Minigun", WEAPON_MINIGUN, 20},
- {"Grenade", WEAPON_GRENADE, 20},
- {"Molotov Cocktail", WEAPON_MOLTOV, 20}
- };
- new WeaponPackages[][PackagesData] = {
- {2832.0, 2405.0, 18.0},
- {2819.0, 1663.0, 11.0},
- {2725.0, 2727.0, 11.0},
- {2649.0, 2733.0, 11.0},
- {2148.0, 2721.0, 11.0},
- {1345.0, 2367.0, 11.0},
- {1625.0, 1944.0, 11.0},
- {1569.0, 2150.0, 11.0},
- {2072.0, 2370.0, 61.0},
- {2225.0, 2530.0, 17.0},
- {2337.0, 1806.0, 72.0},
- {2575.0, 1562.0, 16.0},
- {2243.0, 1132.0, 11.0},
- {2676.0, 836.0, 22.0},
- {1761.0, 591.0, 10.0},
- {2809.0, 864.0, 21.0},
- {1923.0, 1011.0, 22.0},
- {1407.0, 1098.0, 11.0},
- {1319.0, 1636.0, 10.6},
- {1446.35, 1900.03, 11.0},
- {1098.0, 1681.0, 7.0},
- {924.0, 2138.0, 11.0},
- {1155.0, 2341.0, 17.0},
- {1646.0, 1349.0, 11.0},
- {1781.0, 2072.0, 11.0},
- {2478.0, 1182.0, 22.0},
- {2510.0, -1723.0, 19.0},
- {2538.0, -1630.0, 14.0},
- {2551.33, -1740.0, 6.49},
- {2428.0, -1214.0, 36.0},
- {2766.0, -2182.0, 11.0},
- {2142.0, -1804.0, 16.0},
- {1764.0, -1930.0, 14.0},
- {1214.0, -1816.0, 17.0},
- {51740.0, -1231.0, 92.0},
- {2266.0, -1028.0, 59.0},
- {2463.0, -1061.0, 60.0},
- {2047.0, -1406.0, 68.0},
- {2213.0, -2283.0, 15.0},
- {1463.0, -1013.0, 27.0},
- {1308.97, -874.4, 40.0},
- {1102.0, -661.0, 114.0},
- {899.8012, -792.078, 102.0},
- {338.0, -1875.0, 4.0},
- {397.0, -1924.0, 8.0},
- {886.0, -966.0, 37.0},
- {1408.0, -2380.0, 14.0},
- {1379.0, -2547.0, 14.0},
- {2426.0, -1416.0, 24.0},
- {2197.0, -2475.0, 14.0},
- {2441.0, -1013.0, 54.0},
- {-2678.0, -128.0, 4.0},
- {-2212.0, 109.0, 35.0},
- {-2903.0, 784.0, 35.0},
- {-2665.0, 1452.0, 7.0},
- {-2754.0, -400.0, 7.0},
- {-2206.0, -23.0, 35.0},
- {-1841.106, -74.2171, 14.7606},
- {-1579.0, 29.45, 17.0},
- {-2094.0, -488.0, 36.0},
- {-1968.0, -923.0, 32.0},
- {-1945.0, -1088.0, 31.0},
- {-1700.0, 415.0, 7.0},
- {-1386.0, 509.0, 4.0},
- {-1679.0, 1410.0, 7.0},
- {-2132.52, 189.2507, 35.5379},
- {-1126.69, -150.82, 14.61},
- {-1496.0, 591.0, 42.0},
- {-2542.262, 922.2401, 67.1221},
- {-2092.0, 1121.0, 54.0},
- {-1629.0, 1167.0, 24.0},
- {-1870.0, -1625.0, 22.0},
- {-1627.0, -2692.0, 49.0},
- {-2038.0, -2562.0, 31.0},
- {-1035.0, -2258.0, 70.0},
- {2366.0, 23.0, 28.0},
- {2255.0, -74.0, 32.0},
- {1296.0, 392.0, 20.0},
- {262.0, 38.0, 2.0},
- {-121.0, -232.0, 1.0},
- {113.0, 1811.0, 18.0},
- {36.0, 1372.0, 9.0},
- {24.0, 969.0, 20.0},
- {-170.0, 1025.0, 20.0},
- {-639.0, 1181.0, 13.0},
- {-585.0, 2714.0, 72.0},
- {-742.0, 2752.0, 47.0},
- {-932.02, 2649.92, 42.0},
- {-1317.0, 2509.0, 87.0},
- {-1474.0, 2577.0, 56.0},
- {-2352.0, 2456.0, 6.0},
- { -2520.0, 2293.0, 5.0},
- {-1358.0, -2115.0, 30.0},
- {119.0, 2409.0, 17.0},
- {1284.894, 278.5705, 19.5547},
- {2129.4, -2280.71, 14.42},
- {2198.11, -1170.22, 33.5},
- {935.744, -926.0453, 57.7642},
- {255.0493, 84.0615, 1002.453},
- {217.8, 76.4, 1005.047},
- {263.2531, 109.7859, 1004.625},
- {228.3176, 114.433, 999.0215},
- {242.613, 196.3202, 1008.172},
- {240.7765, 196.1124, 1008.172},
- {-2539.918, -598.6152, 132.764},
- {-2329.984, -165.3635, 35.2389},
- {-2721.241, -318.8085, 7.5246},
- {-2677.102, 234.9912, 4.1048},
- {-2706.692, 375.8728, 5.0525},
- {-2550.106, 657.286, 14.7319},
- {-2791.248, 771.5468, 51.0904},
- {-1770.815, 903.2556, 25.3894},
- {-1713.006, 1368.239, 7.2664},
- {-1851.317, 1302.291, 60.7553},
- {-1635.026, 604.4713, 40.6377},
- {-1976.483, 670.5043, 46.6039},
- {-2038.409, 1111.406, 53.7928},
- {-2048.803, 899.5274, 53.8866},
- {-2292.47, 722.5441, 49.4265},
- {-1977.916, 113.8457, 27.1096},
- {-1528.144, 160.0232, 3.5142},
- {-1771.261, -597.5884, 16.6287},
- {2495.807, -1700.637, 1017.837},
- {-601.4012, -1068.6, 23.6667},
- {2820.013, -1426.519, 23.805},
- {2790.343, -1427.489, 39.6258},
- {2574.065, -1134.201, 64.6535},
- {2423.892, -1117.452, 41.2464},
- {1706.352, 1242.019, 34.2952},
- {2492.051, 2398.377, 4.5293},
- {2055.355, 2435.356, 40.3684},
- {2293.686, 1982.286, 31.4335},
- {244.98, 1859.185, 14.08},
- {2529.724, -1678.563, 19.4225},
- {2254.378, -2261.689, 14.3751},
- {2015.744, 1004.045, 39.1}
- };
- //------------------------------------------------------------------------------------------------------
- if(!IsValidDynamicPickup(pickupid)) return 1;
- if (Streamer_GetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID) == 1276) {
- if(IsPlayerInAnyVehicle(playerid)) return 1;
- if(IsPlayerInMinigame(playerid)) return 1;
- for(new i; i < sizeof(WeaponPackages); i++) {
- if(WeaponPackages[i][pickupID] == pickupid) {
- new weaponid, ammo, found = 0, id = random(sizeof(PackageWeapons));
- for(new x; x <= 12; x++) {
- GetPlayerWeaponData(playerid, x, weaponid, ammo);
- //if(weaponid) continue;
- if(GetWeaponSlot(PackageWeapons[id][packageWeaponID]) == x) {
- if(weaponid != 0 && ammo != 0)
- {
- if(Info[playerid][Premium] >= 2) AWH_GivePlayerWeapon(playerid, weaponid, PackageWeapons[id][packageWeaponAmmo] * 2);
- else AWH_GivePlayerWeapon(playerid, weaponid, PackageWeapons[id][packageWeaponAmmo]);
- new wname[36];
- new weaponid = PackageWeapons[id][packageWeaponID];
- GetWeaponName(weaponid, wname, sizeof(wname));
- format(string,sizeof(string),"Has picked (weapon :%s Ammo :%d)[Package]",wname,PackageWeapons[id][packageWeaponAmmo]);
- SavePlayerLog(playerid,string);
- found++;
- Info[playerid][Packages]++;
- PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
- break;
- }
- else
- {
- if(Info[playerid][Premium] >= 2) AWH_GivePlayerWeapon(playerid, PackageWeapons[id][packageWeaponID], PackageWeapons[id][packageWeaponAmmo] * 2);
- else AWH_GivePlayerWeapon(playerid, PackageWeapons[id][packageWeaponID], PackageWeapons[id][packageWeaponAmmo]);
- new weaponidz = PackageWeapons[id][packageWeaponID];
- new wname[36];
- GetWeaponName(weaponidz, wname, sizeof(wname));
- format(string,sizeof(string),"Has picked (weapon :%s Ammo :%d)[Package]",wname,PackageWeapons[id][packageWeaponAmmo]);
- SavePlayerLog(playerid,string);
- found++;
- Info[playerid][Packages]++;
- PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
- //format(string, sizeof string, "~w~Package: %s", WeaponNames(weaponid));
- //GameTextForPlayer(playerid, string, 5000, 3);
- break;
- }
- }
- }
- if(found == 0)
- {
- new wname[36];
- new weaponids = PackageWeapons[id][packageWeaponID];
- GetWeaponName(weaponids, wname, sizeof(wname));
- if(Info[playerid][Premium] >= 2)
- AWH_GivePlayerWeapon(playerid, PackageWeapons[id][packageWeaponID], PackageWeapons[id][packageWeaponAmmo] * 2),format(string,sizeof(string),"Has picked (Weapon:%s ID:%s Ammo:%s)[Package]",wname, PackageWeapons[id][packageWeaponAmmo]),SavePlayerLog(playerid,string);
- else AWH_GivePlayerWeapon(playerid, PackageWeapons[id][packageWeaponID], PackageWeapons[id][packageWeaponAmmo]),format(string,sizeof(string),"Has picked (Weapon:%s ID:%s Ammo:%s)[Package]",wname, PackageWeapons[id][packageWeaponAmmo]),SavePlayerLog(playerid,string);
- Info[playerid][Packages]++;
- PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
- //format(string, sizeof string, "~w~Package: %s", PackageWeapons[id][packageWeapon]);
- //GameTextForPlayer(playerid, string, 5000, 3);
- }
- mysql_format(mysql, string, sizeof string, "UPDATE `playersdata` SET `Packages` = %i WHERE `ID` = %i", Info[playerid][Packages], Info[playerid][ID]);
- mysql_tquery(mysql, string);
- SetTimerEx("CreatePackage", 10 * 60000, 0, "i", i);
- DestroyDynamicPickup(WeaponPackages[i][pickupID]);
- ResetPickup(WeaponPackages[i][pickupID]);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement