Init.sqs (on the player field...)
_unit = _this select 0
Money = 2500
Ammo_Check = 0
_unit addAction ["Statistics","Scripts/Stats.sqs"]
_unit addeventhandler ["killed", {_this exec "Global/Player_Killed.sqs"}]
_unit addeventhandler ["fired", {_this exec "Global/Player_Fired.sqs"}]
Exit
player_killed.sqs
_unit = _this select 0
? _unit == p1 : _unit_id = "p1"
? _unit == p2 : _unit_id = "p2"
? _unit == p3 : _unit_id = "p3"
? _unit == p4 : _unit_id = "p4"
? _unit == p5 : _unit_id = "p5"
? _unit == c1 : _unit_id = "c1"
? _unit == c2 : _unit_id = "c2"
? _unit == c3 : _unit_id = "c3"
? _unit == c4 : _unit_id = "c4"
? _unit == c5 : _unit_id = "c5"
? _unit == c6 : _unit_id = "c6"
? _unit == c7 : _unit_id = "c7"
? _unit == c8 : _unit_id = "c8"
? _unit == c9 : _unit_id = "c9"
? _unit == c10 : _unit_id = "c10"
_unit removealleventhandlers "Killed"
_unit removealleventhandlers "Fired"
_msg = Format["%1 you died and will respawn in 1 Minute!", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 55 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 50 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 45 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 40 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 35 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 30 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 25 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 20 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 15 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 10 Seconds.", name _unit]
_unit groupchat _msg
~5
_msg = Format["%1 you will respawn in 5 Seconds.", name _unit]
_unit groupchat _msg
~1
_msg = Format["%1 you will respawn in 4 Second.", name _unit]
_unit groupchat _msg
~1
_msg = Format["%1 you will respawn in 3 Second.", name _unit]
_unit groupchat _msg
~1
_msg = Format["%1 you will respawn in 2 Second.", name _unit]
_unit groupchat _msg
~1
_msg = Format["%1 you will respawn in 1 Second.", name _unit]
_unit groupchat _msg
_msg = Format["Welcome back to the land of the living, %1.", name _unit]
~1
;? _unit_id == 1 : removeallweapons p1; p1 addaction ["Statistics","Scripts/Stats.sqs"]; p1 addEventHandler ["killed", {_this exec "Global/Player_Killed.sqs"}]; p1 addeventhandler ["fired", {_this exec "Global/Player_Fired.sqs"}]; p1 groupchat _msg;
{call format [{removeallweapons %1}, _unit_id]}
{call format [{%1 addAction ["Statistics","Scripts/Stats.sqs"]}, _unit_id]}
{call format [{%1 addeventhandler ["Killed", {_this exec "Global/Player_Killed.sqs"}]}, _unit_id]}
{call format [{%1 addeventhandler ["Fired", {_this exec "Global/Player_Fired.sqs"}]}, _unit_id]}
{call format [{%1 groupchat _msg}, _unit_id]}
~1
deletevehicle _unit
exit