SA-MP Forums Archive
Pickup Help. - 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: Pickup Help. (/showthread.php?tid=111127)



Pickup Help. - acade - 29.11.2009

Hello,

Is it possible to add just one line of when they go into a pickup it gives them a weapon or not?

If so or not please post on how I can do it.

Thanks alot


Re: Pickup Help. - diesulke - 29.11.2009

(model,type,Float:X,Float:Y,Float:Z,Virtualworld)

Код:
public OnGameModeInit()
{
  AddStaticPickup(352, 2, 1503.3359, 1432.3585, 10.1191, 0);
  return 1;
}
This Pickup gives a Micro uzi and it respawns after some time


Re: Pickup Help. - acade - 29.11.2009

Ok thanks, so I change the 352 for say 38?

Also, 2 for 3 so it respawns if the person who had it dies?

EDIT: What about the bullets e.t.c? or is it just a spinning gun? I would like it so there is a spinning icon, when you walk into it you pick up say a desert eagle with 50 bullets.


Re: Pickup Help. - diesulke - 29.11.2009

Quote:
Originally Posted by TheOneThatOwnZ
Ok thanks, so I change the 352 for say 38?
The weapon id's:

321 - Regular Dildo
322 - White Dildo
323 - Vibrator
324 - Another Vibrator
325 - Flowers
326 - Cane
327 - A box of some kind <--- No Effect
328 - A large box of some kind <--- No Effect
329 - Removed/Non Existent. <--- DO NOT USE
330 - CJ's Phone
331 - Brass Knuckles
332 - Old VC Screwdriver - Removed. <--- DO NOT USE
333 - Golf Club
334 - Police Truncheon/Night Stick
335 - Combat Knife
336 - Baseball Bat
337 - Shovel
338 - Pool Cue
339 - Katana
340 - Skateboard - Removed. <--- DO NOT USE
341 - Chainsaw
342 - Frag Grenade
343 - Tear Gas Grenade
344 - Molotov Cocktail
345 - Vehicle Missile Launcher <--- Use with caution, very crash prone!
346 - Colt 45 Pistol
347 - Silenced Pistol
348 - Desert Eagle
349 - Regular Shotgun
350 - Sawn-Off Shotgun
351 - Combat Shotgun
352 - Micro Uzi
353 - MP5
354 - Hydra Flare
355 - AK47 Assault Rifle
356 - M4 Assault Rifle
357 - Country Rifle?
358 - Sniper Rifle
359 - Rocket Launcher
360 - Heat Seeking Rocket Launcher
361 - Flamethrower
362 - Minigun
363 - Satchel Charges
364 - Detonator <---- Seemingly Useless.
365 - Spray Paint Can
366 - Fire Extinguisher
367 - Camera
368 - Night Vision Goggles
369 - Infra-Red Goggles
370 - Jet pack
371 - Parachute
372 - Tec-9
373 - Armour model used in Ammunition (No Effect)



Quote:
Originally Posted by TheOneThatOwnZ
Also, 2 for 3 so it respawns if the person who had it dies?
Available Pickup Types:

0 The pickup does not display.
1 Not pickupable, exists all the time.
2 Pickupable, respawns after some time.
3 Pickupable, respawns after death
4 Disappears shortly after created (perhaps for weapon drops?)
5 Disappears shortly after created (perhaps for weapon drops?)
8 Pickupable, but has no effect. Disappears automatically.
11 Blows up a few seconds after being created (bombs?)
12 Blows up a few seconds after being created.
13 Slowly decends to the ground.
14 Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.
15 Pickupable, respawns after death
19 Pickupable, but has no effect (information icons?)
22 Pickupable, respawns after death.
23 Pickupable, but doesn't disappear on pickup.


Re: Pickup Help. - acade - 29.11.2009

Ok thanks, Seen this on the wiki just now So, does this give me the weapon? If so, how much ammo or can that be changed?


Re: Pickup Help. - diesulke - 29.11.2009

It gives you the weapon, but i don't know how many bullets

https://sampwiki.blast.hk/wiki/PickupGuide


Re: Pickup Help. - acade - 30.11.2009

Ok thanks.


Re: Pickup Help. - Lucas Giovanni - 30.11.2009

"If you want you can do so:"

http://pastebin.com/f41c7eee0


Re: Pickup Help. - acade - 30.11.2009

Thanks alot, didn't understand the top of the last post but understood the pastebin file.

Thanks alot.


Re: Pickup Help. - Lucas Giovanni - 30.11.2009

Sorry

I wrote in Portuguese

I'll edit it