Jump to content
Sign in to follow this  
soldat_ryan

script for vehicle reserved by Guid

Recommended Posts

Hi,

I m using this script found on the forum to reserve some slots by GUID.

reservedslot.sqf

waitUntil {!isNull player};
waitUntil {(vehicle player) == player};
waitUntil {(getPlayerUID player) != ""};

reserved_units = [unit1,unit2];
reserved_uids = ["UID1","UID2","UID3"];

_uid = getPlayerUId player;

if ((player in reserved_units)&& !(_uid in reserved_uids)) then {
player groupChat "You are in a reserved slot, kicking to lobby in 20 seconds";
sleep 20;
failMission "end1";
};

and i would like to add 2 or 3 vehicles in the list but after some try, i failed ! :( (i m not a scripter !! :rolleyes: )

What i want to do is :

reserve usage of vehicle named "veh1" to the players in the "reserved_uids" list.

I don't want to lock the vehicle, but only driver seat.

It is for dedicated server.

If there is a way to mix the script with "reservedslot.sqf" it will be be nice.

Thanks by advance.

Greats.

(PS : i couldn't give answer before few days)

Share this post


Link to post
Share on other sites

I think you can use the addEventHandler "GetIn" method and check if its the correct player and if not - pull him out of the vehicle.

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  

×