Jump to content
Sign in to follow this  
maxx2504

Respawn Point

Recommended Posts

Hi !

How can i set a respawn point for the players ? And my chatsystem dont work on the Server.

Any suggestions ? :)

maxx

Share this post


Link to post
Share on other sites

Hi !

I have another problem. I found a guide to respawn vehicle but it dont work. What text must i use for the vehicle.sqf ??? Are there any german players who can help ? im getting sick of english -.-

maxx

Share this post


Link to post
Share on other sites

open notepad and paste:

// Raunis vehispawn 1.0

private ["_vehicle", "_delay", "_startpos", "_startdir", "_type", "_disabled", "_empty"];

if (!isServer) exitWith{};

_vehicle = _this select 0;

_delay = _this select 1;

_startpos = getpos _vehicle;

_startdir = getdir _vehicle;

_type = typeof _vehicle;

while {true} do {

sleep (_delay + random 15);

if (({alive _x} count (crew _vehicle)) == 0) then {

_disabled = (if (damage _vehicle > 0.9) then {true} else {false});

if (_disabled || !(alive _vehicle)) then {

deletevehicle _vehicle;

sleep 0.5;

_vehicle = _type createvehicle _startpos;

_vehicle setpos _startpos;

_vehicle setdir _startdir;

};

};

};

Save it as vehspawn.sqf <- NB! Very important that you save it as a *.sqf file and not as a ordinary text file.

And it should be placed in your mission folder (folder containing your mission)

Share this post


Link to post
Share on other sites

Hi !

thanks. works good. is there any chance to change the ammo of the ammo trucks to unlimited ?

maxx

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  

×