Jump to content
Sign in to follow this  
xgamer224

Admin vehicle spawn

Recommended Posts

hi. i want to make a vehicle spawn that only admins can use.

heres what i have so far:

Object:

position[]={4132.4795,339.01843,10911.304};
		azimut=145;
		special="NONE";
		id=14;
		side="EMPTY";
		vehicle="Base_WarfareBContructionSite";
		leader=1;
		skill=0.60000002;
		init="0 = [] execVm ""Spawner.SQF""; _spawner = this addAction [""Spawn HMWV"",""Spawner.sqf"",[""_Marker"",""HMMWV_MK19""]]; 

Spawner.sqf:

// 0 = [] execVm "Spawner.SQF"; \\
_marker = _this select 3 select 0;
_class = _this select 3 select 1;
_azimut = _this select 3 select 2;

_class createVehicle getMarkerPos _marker;

Now what i want to do is to make it so that admins can be the only ones that can use the object to spawn vehicles

something like:

init= "if playerid==""123456789""
then "0 = [] execVm ""Spawner.SQF""; _spawner = this addAction [""Spawn HMWV"",""Spawner.sqf"",[""_Marker"",""HMMWV_MK19""]];" 

can someone help?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×