MultiGamer Posted February 22, 2015 Report Share Posted February 22, 2015 Hi all! I'm have a problem... I make the menu for the server , but do not know how to remove it after the death of the player. doing so: waitUntil { not alive player }; However , it removes the once .. Help please. _Rus_ Всем привет! У меня есть проблема... Я делаю меню для сервера, но не знаю как его удалить после смерти игрока. Делаю так: waitUntil { not alive player }; Но эта функция удаляет всего один раз... Помогите пожалуйста. This is menu | Это меню. waituntil {!alive player ; !isnull (finddisplay 46)}; _na = player addaction [("<t color=""#0074E8"">" + ("Menu") +"</t>"),"[] call LoadMenu","",5,false,true,"",""]; titleText ["One load menu!", "PLAIN DOWN", 3]; LoadMenu = { _new = player addaction [("<t color=""#ff0000"">" + ("Suicide") +"</t>"),"[] call KillPlayer","",5,false,true,"",""]; _new = player addaction [("<t color=""#0074E8"">" + ("Exit") +"</t>"),"[] call RemoveAllA","",5,false,true,"",""]; }; RemoveAllA = { removeAllActions player; _na = player addaction [("<t color=""#0074E8"">" + ("Menu") +"</t>"),"[] call LoadMenu","",5,false,true,"",""]; titleText ["Menu loaded!", "PLAIN DOWN", 3]; }; KillPlayer = { player setDamage 1; }; if (!isServer) then { player addEventHandler ["Respawn", { _na = player addaction [("<t color=""#0074E8"">" + ("Menu") +"</t>"),"[] call LoadMenu","",5,false,true,"",""]; titleText ["Respawned!", "PLAIN DOWN", 3]; }]; }; waitUntil { not alive player }; removeAllActions player; Link to comment Share on other sites More sharing options...
0 MultiGamer Posted February 22, 2015 Author Report Share Posted February 22, 2015 so decided: Added: if (!isServer) then { player addEventHandler ["Respawn", { [] spawn MenuKilled; _na = player addaction [("<t color=""#0074E8"">" + ("Menu") +"</t>"),"[] call LoadMenu","",5,false,true,"",""]; titleText ["Respawned!", "PLAIN DOWN", 3]; }]; }; waitUntil { not alive player }; removeAllActions player; MenuKilled = { waitUntil { not alive player }; removeAllActions player; }; This - [] spawn MenuKilled; adn This: MenuKilled = { waitUntil { not alive player }; removeAllActions player; }; Link to comment Share on other sites More sharing options...
0 Leigham Posted February 23, 2015 Report Share Posted February 23, 2015 So you want this to show up for the players first life ? or only while the player has just spawned ? Link to comment Share on other sites More sharing options...
0 MultiGamer Posted February 23, 2015 Author Report Share Posted February 23, 2015 So you want this to show up for the players first life ? or only while the player has just spawned ? Only after death. She switched on continuously from the lively and to death. Link to comment Share on other sites More sharing options...
Question
MultiGamer
Hi all!
I'm have a problem...
I make the menu for the server , but do not know how to remove it after the death of the player.
doing so: waitUntil { not alive player };
However , it removes the once ..
Help please.
_Rus_
Всем привет!
У меня есть проблема...
Я делаю меню для сервера, но не знаю как его удалить после смерти игрока.
Делаю так: waitUntil { not alive player };
Но эта функция удаляет всего один раз...
Помогите пожалуйста.
This is menu | Это меню.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now