Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Questions (player objects, stealth vehs)
Questions (player objects, stealth vehs) [message #413375] Mon, 07 December 2009 09:29 Go to previous message
Hubba is currently offline  Hubba
Messages: 40
Registered: October 2009
Karma:
Recruit
Question 1: I have build commands on my server so now i have been wondering when you for example use !ramp which create a ramp. How can i make so the object belongs to a player-id? So it would store all objects a player has made in an array or something? Then when the user type !cleanup it would remove all the objects he have made.

Question 2: I have a "!ssv" command which sets the current vehicle a player is inside to stealth. Now i want to make so when an another player join the game later he should see them stealth. So i need somehow to add and store all the vehicles in an array so it would loop that array when the other play joins and set stealth to all these vehicles. But the problem is how could i make so when i type !ssv it would add the vehicle to the array? And how can i remove that vehicle from the array when it gets destroyed?

Now i don't know if arrays is the best way to do it. But if you have a better idea then please tell it Dont Get It ?

Code in spoilers.
!ramp
Toggle Spoiler

!ssv
Toggle Spoiler


Thanks,
Hubba
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A few skins
Next Topic: C++ code help please.
Goto Forum:
  


Current Time: Wed Jul 17 07:13:05 MST 2024

Total time taken to generate the page: 0.01119 seconds