I wrote this script for my squad's (RCIR) training island map :
_veh = _this select 0
_pos = getpos _veh
_vehtype = typeof _veh
#loop
?!(alive _veh): GOTO "fix"
~1
GOTO "loop"
#fix
~5
newveh = _vehtype createvehicle _pos
deletevehicle _veh
[newveh] exec "veh.sqs"
EXIT
It works fine if there is one player using it.. But when two people are playing, 2 vehicles respawn, 3 players, 3 vheicles spawn etc...
I know all I'm missing is a bit of code before the bit that creates the veichle, but I'm not sure what it is..
?(player=server):then create the vehicle
Or something like that, but not sure.. I've not tested that bit of code btw
Thanks!
- Ben