Getting the Id of a vehicle that was just created?
#10

I think MAX_PLAYERS is more appropriate for this kind of command. That way, you can track who spawned the vehicle without introducing a new variable. For admin vehicles, normally you would delete the old admin vehicle before creating the new one, but just by changing it from MAX_VEHICLES to MAX_PLAYERS, that doesn't mean you can't spawn more than one, it just means the variable will change value, and it will save as the last vehicle id that you spawned. This won't limit the amount of vehicles you can create unless you code it to do otherwise.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)