mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #752 from Ignatz-HeMan/patch-1
Force Save Player after Spawnpoint set
This commit is contained in:
commit
b036ed080c
@ -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];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user