16.03.2009, 14:12
I'm made a set of minigames based around DM, with weapons.
I'm now making a set of minigames using vehicles, for DM and races....
I have the commands set up, once a player enters the command, it triggers the timer, which announces that they can sign up for the minigame by typing the command.
When the timer finishes, if there hasn't been anyone else join then nothing happens, the starter gets their money back.
If there has been some joiners, then the timer calls a custom function to set the players health, armour, world, and position.
Then another timer to get the ready to start.
I've done all this already with the other minigames i've made.
I'm struggling to get the vehicles ones working.
I've tried making a monster truck minigame.
player types /monster, and the timer is started, others who join are given a message letting them know they've signed up.
The command its self is fine, i dont want that to change at all, as its worked with the other ones.
The function the timer calls, i've also included a function in there, which gets called, to spawn the players into the minigame...
This has worked with all other minigames i've made.
The difficult bit for me is if 4 people are in the minigame, i need only 4 vehicles to be created, and each player put into one of those vehicles.
If 8 join thne i need 8 vehicles to be created, and each player put into a sepperate vehicle.
Once the vehicles have been blown up, then i want the vehicle destroyed, NOT respawned.
I'm pretty sure i have that part taken care of. The only part im needing help with is the spawning 1 vehicle per minigame player, and putting them into one of the vehicles.
I'm now making a set of minigames using vehicles, for DM and races....
I have the commands set up, once a player enters the command, it triggers the timer, which announces that they can sign up for the minigame by typing the command.
When the timer finishes, if there hasn't been anyone else join then nothing happens, the starter gets their money back.
If there has been some joiners, then the timer calls a custom function to set the players health, armour, world, and position.
Then another timer to get the ready to start.
I've done all this already with the other minigames i've made.
I'm struggling to get the vehicles ones working.
I've tried making a monster truck minigame.
player types /monster, and the timer is started, others who join are given a message letting them know they've signed up.
The command its self is fine, i dont want that to change at all, as its worked with the other ones.
The function the timer calls, i've also included a function in there, which gets called, to spawn the players into the minigame...
This has worked with all other minigames i've made.
The difficult bit for me is if 4 people are in the minigame, i need only 4 vehicles to be created, and each player put into one of those vehicles.
If 8 join thne i need 8 vehicles to be created, and each player put into a sepperate vehicle.
Once the vehicles have been blown up, then i want the vehicle destroyed, NOT respawned.
I'm pretty sure i have that part taken care of. The only part im needing help with is the spawning 1 vehicle per minigame player, and putting them into one of the vehicles.