Jump to content

Photo
- - - - -

Respawn Point


  • Please log in to reply
4 replies to this topic
Thread Starter
maxx2504
maxx2504

    Corporal

  • Members
  • 62 posts

#1

Posted 05 November 2011 - 16:50

Hi !

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

Any suggestions ? :)


maxx

Warts
Warts

    Private First Class

  • Members
  • 31 posts

#2

Posted 05 November 2011 - 18:11

http://forums.bistud...ad.php?t=126880

Thread Starter
maxx2504
maxx2504

    Corporal

  • Members
  • 62 posts

#3

Posted 05 November 2011 - 20:47

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

scarp
scarp

    Lance Corporal

  • Members
  • 53 posts

#4

Posted 05 November 2011 - 21:11

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)

Thread Starter
maxx2504
maxx2504

    Corporal

  • Members
  • 62 posts

#5

Posted 05 November 2011 - 23:20

Hi !

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


maxx