Hello There, Guest! Login or Register


Unwritten rules and Objects
#4
What's wrong with you? You're acting like LVP's a giant, ruthless, evil robot. We're here to help, that's why we have a section.

(05-17-2008, 02:03 PM)estroe link Wrote: Not sure this is what you mean but the weapon id of the parachute is 46 ;)
He means the object ID, not the weapon ID.

You can find a nice list here. It'll probably be gone again by the time I'm done writing this, so I'll write down what you need.
Parachute is 371
Health is 1240
Armour is 1242 (ID 373 is armor used in the ammu-nation store, won't give you armor when you pick it up)
Green House is 1273
Blue House is 1272

AddStaticPickup and CreatePickup do very different things.
AddStaticPickup won't return a pickup ID - so you can't make it do anything besides its native purpose (health and armor), and you can't destroy it.
CreatePickup will return a pickup ID. You can destroy it, and change its attributes. When a player walks over it, OnPlayerPickUpPickup will be called.

You're better off using CreatePickup for most of your gamemode.

Interiors are basically different little worlds Rockstar uses to hold houses, police stations, etc. You can find which interior you're in by typing /interior in SA:MP -- it's built into the 0.2.2 client. Your interior will usually be zero, the outside world, unless you are inside a house or building.
Any pickups you add manually to the gamemode will appear in each interior, though it shouldn't be a problem.

To use the SA:MP Debug program, you must first find your root directory. This is usually Program Files\Rockstar Games\GTA San Andreas. You should have an executable file (.exe) in that directory called "samp_debug". Run this. When prompted, select "Launch Debug".
Once you're in the game, you'll spawn near vinewood. Type /v to select a vehicle to get around with. If you need coordinates to place anything, type /save (also built into the SA:MP client). This will add a new line in saved_positions.txt in your root folder. The setup should look like this:
Code:
AddPlayerClass(skin, x, y, z, xrot, yrot, zrot)
or, if you were in a vehicle when you typed /save:
Code:
AddStaticVehicle(model, x, y, z, xrot, yrot, zrot)
These are values you'll need to place objects, spawns, vehicles, and pickups.
For adding pickups, you don't need xrot, yrot, or zrot - since they spin around (hurr hurr).

Hope this helps. PM me or reply to this thread if you need anything more. :)
Reply


Messages In This Thread
Unwritten rules and Objects - by blahc - 05-17-2008, 12:12 PM
Re: Unwritten rules and Objects - by estroe - 05-17-2008, 02:03 PM
Re: Unwritten rules and Objects - by blahc - 05-17-2008, 05:15 PM
Re: Unwritten rules and Objects - by Fry - 05-17-2008, 10:45 PM
Re: Unwritten rules and Objects - by blahc - 05-17-2008, 11:23 PM