how do i create weapon spawns
#7

Above main()
Код:
new weapon1;
new weapon2;
GameModeInit()
Код:
weapon1 = AddStaticPickup(modelId, 2, x, y, z);// 2 is the type, respawns after a little while, change x, y, z coords and modelId (listed below)
weapon2 = AddStaticPickup(modelId, 2, x, y, z);// 2 is the type, respawns after a little while, change x, y, z coords and modelId (listed below)
OnPlayerPickupPickup(playerid, pickupid)
Код:
  if(pickupid == weapon1)
  {
    GivePlayerWeapon(playerid, weaponId, ammo);//WeaponId you modify to your weapon, below... and you should also modify ammo...
  }
  if(pickupid == weapon2)
  {
    GivePlayerWeapon(playerid, weaponId, ammo);//WeaponId you modify to your weapon, below... and you should also modify ammo...
  }
Heres the modelid for the pickups: (Its just how the pickup looks, not the weapon you get)
Код:
321 - Regular Dildo
322 - White Dildo
323 - Vibrator
324 - Another Vibrator
325 - Flowers
326 - Cane
330 - CJ's Phone
331 - Brass Knuckles
333 - Golf Club
334 - Night Stick
335 - Combat Knife
336 - Baseball Bat
337 - Shovel
338 - Pool Cue
339 - Katana
341 - Chainsaw
342 - Frag Grenade
343 - Tear Gas Grenade
344 - Molotov Cocktail
346 - Colt 45 Pistol
347 - Colt 45 Pistol Silenced
348 - Desert Eagle
349 - Shotgun
350 - Sawn-Off Shotgun
351 - Combat Shotgun
352 - Micro-UZI
353 - MP5
355 - AK47
356 - M4
357 - Country Rifle
358 - Sniper Rifle
359 - Rocket Launcher
360 - Heat Seeking Rocket Launcher
361 - Flamethrower
362 - Minigun
363 - Satchel Charges
364 - Detonator
365 - Spray Paint Can
366 - Fire Extinguisher
367 - Camera
368 - Night Vision Goggles
369 - Infra-Red Goggles
370 - Jetpack
371 - Parachute
372 - Tec-9
And heres the weapon ids: (The weapon you get when picking up the pickup)
Click me
Reply


Messages In This Thread
how do i create weapon spawns - by johnathon956 - 31.01.2010, 15:17
Re: how do i create weapon spawns - by Fedee! - 31.01.2010, 15:23
Re: how do i create weapon spawns - by johnathon956 - 31.01.2010, 15:40
Re: how do i create weapon spawns - by 02manchestera - 31.01.2010, 15:50
Re: how do i create weapon spawns - by hvampire - 31.01.2010, 16:22
Re: how do i create weapon spawns - by johnathon956 - 31.01.2010, 16:54
Re: how do i create weapon spawns - by bajskorv123 - 31.01.2010, 17:20
Re: how do i create weapon spawns - by johnathon956 - 31.01.2010, 18:08
Re: how do i create weapon spawns - by hvampire - 01.02.2010, 00:11
Re: how do i create weapon spawns - by aceisnice - 24.08.2010, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)