You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

failman300

User / Kunde

  • "failman300" started this thread

Posts: 9

  • Send private message

1

Tuesday, July 1st 2014, 7:15pm

Gefängnis Bug: Spieler spawnen nicht im Knast sondern im Wasser

Hey Ho,

ich und ein Paar Kollegen haben einen Altis Life Server. Bei uns ist aber mit dem Gefängnis irgendwas nicht richtig. Wenn wir jemanden als Cop in den Knast stecken wollen und auf "Send to Jail" gehen despawnt der Spieler bei uns (bis hierhin noch ganz normal) und spawnt nicht im Gefängnis sondern ganz links unten auf der Map. Der Spawnpunkt ist laut dem 2D Editor nicht verschoben worden, sondern befindet sich immer noch im Gefängnis. weis irgendjemand eine Lösung dafür?

Lg Failman300



habe den fehler gefunden. der spawn ist nicht festgelegt in der INitialisierung des Typens. Könnte mir jemad das original geben
Amtiy Altis Life
Made By:
Failman300
HerrMüller
Sirius
Join us: 85.131.226.189:2302

This post has been edited 1 times, last edit by "failman300" (Jul 1st 2014, 7:25pm)


felixo68

User / Kunde

Posts: 21

  • Send private message

2

Tuesday, July 1st 2014, 7:27pm

in core/civilian/fn_jailMe.sqf und in fn_jail.sqf kannst du den Punkt festelgen wo Spieler spawnen wenn sie ins Gefängniss kommen pass den Namen mit deinem Im Gefängniss an in meinem Fall heisst der Punkt jail_marker.

fn_jail.sqf:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
	File: fn_jail.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Starts the initial process of jailing.
*/
private["_bad","_unit"];
_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
hint format["%1", _unit];
if(isNull _unit) exitWith {}; //Dafuq?
if(_unit != player) exitWith {}; //Dafuq?
if(life_is_arrested) exitWith {}; //Dafuq i'm already arrested
_bad = [_this,1,false,[false]] call BIS_fnc_param;
player setVariable["restrained",false,true];
player setVariable["Escorting",false,true];
player setVariable["transporting",false,true];

titleText["You have been arrested, wait your time out. If you attempt to respawn or reconnect your time will increase!","PLAIN"];
hint "For being arrested you have lost the following licenses if you own them\n\nFirearms License\nRebel License";
player setPos (getMarkerPos "jail_marker");

if(_bad) then
{
	waitUntil {alive player};
	sleep 1;
};

//Check to make sure they goto check
if(player distance (getMarkerPos "jail_marker") > 40) then
{
	player setPos (getMarkerPos "jail_marker");
};

[1] call life_fnc_removeLicenses;
if(life_inv_heroinu > 0) then {[false,"heroinu",life_inv_heroinu] call life_fnc_handleInv;};
if(life_inv_heroinp > 0) then {[false,"heroinp",life_inv_heroinp] call life_fnc_handleInv;};
if(life_inv_coke > 0) then {[false,"cocaine",life_inv_coke] call life_fnc_handleInv;};
if(life_inv_cokep > 0) then {[false,"cocainep",life_inv_cokep] call life_fnc_handleInv;};
if(life_inv_turtle > 0) then {[false,"turtle",life_inv_turtle] call life_fnc_handleInv;};
if(life_inv_cannabis > 0) then {[false,"cannabis",life_inv_cannabis] call life_fnc_handleInv;};
if(life_inv_marijuana > 0) then {[false,"marijuana",life_inv_marijuana] call life_fnc_handleInv;};
life_is_arrested = true;

removeAllWeapons player;
{player removeMagazine _x} foreach (magazines player);

[[player,_bad],"life_fnc_jailSys",false,false] spawn life_fnc_MP;
[1,false] call life_fnc_sessionHandle;


fn_jailMe.sqf:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
	File: fn_jailMe.sqf
	Author Bryan "Tonic" Boardwine
	
	Description:
	Once word is received by the server the rest of the jail execution is completed.
*/
private["_ret","_bad","_time","_bail","_esc","_countDown"];
_ret = [_this,0,[],[[]]] call BIS_fnc_param;
_bad = [_this,1,false,[false]] call BIS_fnc_param;
if(_bad) then { _time = time + 1100; } else { _time = time + (15 * 60); };

if(count _ret > 0) then { life_bail_amount = (_ret select 3); } else { life_bail_amount = 1500; _time = time + (10 * 60); };
_esc = false;
_bail = false;

[_bad] spawn
{
	life_canpay_bail = false;
	if(_this select 0) then
	{
		sleep (10 * 60);
	}
		else
	{
		sleep (5 * 60);
	};
	life_canpay_bail = nil;
};

while {true} do
{
	if((round(_time - time)) > 0) then
	{
		_countDown = if(round (_time - time) > 60) then {format["%1 minute(s)",round(round(_time - time) / 60)]} else {format["%1 second(s)",round(_time - time)]};
		hintSilent parseText format["Time Remaining:<br/> <t size='2'><t color='#FF0000'>%1</t></t><br/><br/>Can pay bail: %3<br/>Bail Price: $%2",_countDown,[life_bail_amount] call life_fnc_numberText,if(isNil "life_canpay_bail") then {"Yes"} else {"No"}];
	};
	
	if(player distance (getMarkerPos "jail_marker") > 60) exitWith
	{
		_esc = true;
	};
	
	if(life_bail_paid) exitWith
	{
		_bail = true;
	};
	
	if((round(_time - time)) < 1) exitWith {hint ""};
	if(!alive player && ((round(_time - time)) > 0)) exitWith
	{
	
	};
	sleep 0.2;
};


switch (true) do
{
	case (_bail) :
	{
		life_is_arrested = false;
		life_bail_paid = false;
		hint "You have paid your bail and are now free.";
		serv_wanted_remove = [player];
		player setPos (getMarkerPos "civ_spawn_1");
		[[getPlayerUID player],"life_fnc_wantedRemove",false,false] spawn life_fnc_MP;
		[1,false] call life_fnc_sessionHandle;
	};
	
	case (_esc) :
	{
		life_is_arrested = false;
		hint "You have escaped from jail, you still retain your previous crimes and now have a count of escaping jail.";
		[[0,format["%1 has escaped from jail!",name player]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
		[[getPlayerUID player,name player,"901"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
	};
	
	case (alive player && !_esc && !_bail) :
	{
		life_is_arrested = false;
		hint "You have served your time in jail and have been released.";
		[[getPlayerUID player],"life_fnc_wantedRemove",false,false] spawn life_fnc_MP;
		player setPos (getMarkerPos "civ_spawn_1");
		[1,false] call life_fnc_sessionHandle;
	};
};
Arma 3 Altis Life: 78.143.2.12:2302 / life-z.de

GinoScaletta

User / Kunde

Posts: 149

  • Send private message

3

Friday, December 12th 2014, 11:42pm

Fast selbes Problem

Ich habe das Problem das die Leute im Wasser spawnen wenn sie aus dem Knast kommen, ich gehe davon aus das man das auch in diesen Dateien einstellen kann oder?

Dazu habe ich das Problem wenn ich einen in den Knast stecke ist er zwar im Knast ist aber auch an der Stelle noch da wo ich in ihn in den Knast gesteckt habe, wenn ich ihn dort erschiese stirbt er im Knast.

Gino

TheTotenkopf

Moderator

  • "TheTotenkopf" is male

Posts: 3,801

Location: Deutschland

Occupation: SealDrop Developer & infiSTAR Web Developer

Thanks: 133

  • Send private message

4

Saturday, December 13th 2014, 12:04am

Ihr müsst die marker auf der Map anpassen (Jail_marker und jail_release)


Mit freundlichen Grüßen
TheTotenkopf
SealDrop Altis-Life
Download hier --> Klick

SealDrop King of the Hill
Download hier --> Klick


SealDrop Homepage
SealDrop.de

Kein Support per PN

bmwmax

User / Kunde

Posts: 1

  • Send private message

5

Monday, February 1st 2016, 7:22pm

Schönen Guten Abend ich habe das Selbe problem ich habe einen Jailmarker im Gefängnis und einen jailrelase in kavala jedoch kann ich keine personen von irgenwelchen polizeihqs in das jail stecken ist immer grau hinterlegt.
Einer eine Idde oder Lösung für mich ? wäre um Hilfe sehr Dankbar :)

sp4rky

Moderator

  • "sp4rky" is male

Posts: 2,096

Location: EditorCity

Occupation: Support: Epoch, Nitrado, InfiStar

Thanks: 111

  • Send private message

6

Tuesday, February 2nd 2016, 12:40am

> GITHUB <

:gamer:

Kein Support per PN!

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net