23 lines
530 B
Plaintext
23 lines
530 B
Plaintext
[
|
|
"respawn",
|
|
{
|
|
_clientID = _thisArgs select 0;
|
|
player setDamage 1;
|
|
|
|
// log to server RPT
|
|
[
|
|
"init",
|
|
"CHAT COMMAND RESPAWN",
|
|
[player] call milsim_fnc_addPlayerInfoToArray
|
|
] remoteExec ["milsim_fnc_log", 2];
|
|
|
|
// systemChat to all remote machines
|
|
format["%1 claims they were glitched and respawned (%2)", name player, netID player] remoteExec["systemChat", -_clientID];
|
|
},
|
|
"all",
|
|
[clientOwner]
|
|
] call CBA_fnc_registerChatCommand;
|
|
|
|
diag_log text "[MILSIM] (settings) respawn chat handler registered";
|
|
|
|
nil; |