Last active
December 11, 2017 07:36
-
-
Save JanneSalokoski/86dbbfff5d5feed8c61aaebff9c3362e to your computer and use it in GitHub Desktop.
VBS3 Respawn All -script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
player addAction ["Respawn All", "respawn.sqf", [], -1, false, false, "", "isAdmin"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nul = [] execVM "init.sqf"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isAdmin) then | |
{ | |
_units = allUnits; | |
_deadUnits; | |
{ | |
_ls = lifeState _x; | |
if (_ls == "DEAD") then | |
{ | |
publicExec ["local (_this select 0)", "titleText ['Kaikki pelaajat on herätetty henkiin. Paina M kahdesti jatkaaksesi peliä', 'BLACK OUT', 1];", [_x], false]; | |
revive _x; | |
} | |
} forEach _units; | |
titleText ['Kaikki pelaajat on herätetty henkiin', 'Plain', 1]; sleep 2; titleFadeOut 1; | |
} | |
else | |
{ | |
titleText ['Vain admin-käyttäjät voivat herättää muita henkiin', 'Plain', 1]; sleep 2; titleFadeOut 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment