Merge pull request #752 from Ignatz-HeMan/patch-1

Force Save Player after Spawnpoint set
This commit is contained in:
vbawol 2017-05-12 07:03:09 -07:00 committed by GitHub
commit b036ed080c

View File

@ -36,6 +36,7 @@ if (alive _jammer) then {
// set position of spawnpoint to players SERVER_VARS
_server_vars set [0, getposATL _player]; // 0 = RESPAWN POS
_player setVariable ["SERVER_VARS", _server_vars];
[_player, _player getVariable["VARS", []]] call EPOCH_server_savePlayer;
["Spawnpoint set", 5] remoteExec ['Epoch_message',_player];
}
else
@ -43,6 +44,7 @@ if (alive _jammer) then {
// remove position of spawnpoint from players SERVER_VARS
_server_vars set [0, []]; // 0 = RESPAWN POS
_player setVariable ["SERVER_VARS", _server_vars];
[_player, _player getVariable["VARS", []]] call EPOCH_server_savePlayer;
["Spawnpoint removed", 5] remoteExec ['Epoch_message',_player];
};
}