31.01.2010, 17:20
Above main()
GameModeInit()
OnPlayerPickupPickup(playerid, pickupid)
Heres the modelid for the pickups: (Its just how the pickup looks, not the weapon you get)
And heres the weapon ids: (The weapon you get when picking up the pickup)
Click me
Код:
new weapon1; new weapon2;
Код:
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)
Код:
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... }
Код:
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
Click me