SA-MP Forums Archive
Problem - Drop Weapons - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem - Drop Weapons (/showthread.php?tid=151888)



Problem - Drop Weapons - MrLeNy - 01.06.2010

Hello. I did just fall out after the death of weapons, but something with them is not so, because when a player dies after the show instead of a weapon like a minigun pickup is based on a 2 miniguns etc.

Here's the code:
Код:
new Float:x, Float:y, Float:z, weaponid[13], ammo[13], pickid;
GetPlayerPos(playerid, x, y, z);

pickid = CreateDynamicPickup(1550, 2, x, y, z, -1);
DropPickUp[pickid][MoneyPick] = true;
SetTimerEx("DestroyDropPickup", 10000, false, "d", pickid);

for(new slot; slot < 13; slot++)
{
GetPlayerWeaponDataEx(playerid, slot, weaponid[slot], ammo[slot]);
if(weaponid[slot] != 0 && ammo[slot] != 0)
{
new Float:wX = x+(random(3)-random(3));
new Float:wY = y+(random(3)-random(3));
pickid = CreateDynamicPickup(DropWeapon[weaponid[slot]], 2, wX, wY, z, -1);
DropPickUp[pickid][WeapID] = weaponid[slot];
DropPickUp[pickid][Amunicja] = ammo[slot];
SetTimerEx("DestroyDropPickup", 10000, false, "d", pickid);
}
}
Please help


Re: Problem - Drop Weapons - MrLeNy - 01.06.2010

Any Help


Re: Problem - Drop Weapons - IcyBlight - 01.06.2010

I don't get the question, sorry


Re: Problem - Drop Weapons - RatHack - 01.06.2010

2 miniguns? possible is a bug.


Re: Problem - Drop Weapons - MrLeNy - 01.06.2010

Hmm. Why kill someone like me to make two pickups tec weapons rather than one, and yours too. Here is a ss:




2 miniguns
2 knives
2 SMS

Why show up after two weapons of each kind. Should be the one minigun, an SMG, etc


Re: Problem - Drop Weapons - MrLeNy - 01.06.2010

ANY HELP