how do i create weapon spawns
#1

so i can make my server better
Reply
#2

Just use "AddStaticPickUp"
Reply
#3

Quote:
Originally Posted by Fedee!
Just use "AddStaticPickUp"
am a bit more specific like were to put it
Reply
#4

look at static pickup id on wiki and you will under stand and in the gm search 'addstaticpickup' you will find a list of them and put it der
Reply
#5

do u mean a weapon that spawn with the player class when he spawns or its a weapon pickup u want to place somewhere?
Reply
#6

Quote:
Originally Posted by hvampire
do u mean a weapon that spawn with the player class when he spawns or its a weapon pickup u want to place somewhere?
one that i find to pickup
Reply
#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
#8

um is there an easier way
Reply
#9

there is no other way to create a pickup exept with his way
Reply
#10

weapon1 = AddStaticPickup(348, 2, -1517.1525,12.8695,7.2583);// 2 is the type, respawns after a little while, change x, y, z coords and modelId (listed below)

if(pickupid == weapon1)
{
GivePlayerWeapon(playerid,348,150);//WeaponId you modify to your weapon, below... and you should also modify ammo...
}

And i also have the new weapon1 at the top and i only want one gun and the errors i get is.
C:\Users\Chase Steinhauser\Desktop\LSRCR\gamemodes\chasescopsandr obbers.pwn(3626) : error 017: undefined symbol "pickupid"
C:\Users\Chase Steinhauser\Desktop\LSRCR\gamemodes\chasescopsandr obbers.pwn(362 : error 017: undefined symbol "playerid"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)