VTOLboardThread2()
{
level endon("VTOLspaceExplode3");
for(;
{
foreach(player in level.players)
{
player.VTOLboardText3 destroy();
player.VTOLboardText4 destroy();
if(distance(player.origin, level.Ballista3.origin) <=85 )
{
player.VTOLboardText4 = player createFontString("hudbig", 1.4);
player.VTOLboardText4 setPoint("CENTER", "CENTER", 0, 50);
player.VTOLboardText4 setText("press [{+usereload}] pour hacker le systeme!");
if(player usebuttonpressed() && player.menu.open == false)
{
player playsound("wpn_rocket_explode");
lol = level.Ballista71 moveto((-1512.91, 1150.59, -20.506),1);
player giveWeapon("peacekeeper_mp",0,true(29,0,0,0,0));
player switchtoweapon("peacekeeper_mp");
player givemaxammo("peacekeeper_mp");
level.Ballista7 moveto((-1512.91, 1150.59, -37.506), 3);
player.VTOLboardText4 destroy();
player.VTOLboardText3 = player createFontString("hudbig", 1.4);
player.VTOLboardText3 setPoint("CENTER", "CENTER", 0, 50);
player.VTOLboardText3 setText("press [{+actionslot 1}] pour acheter une Peacekeeper[^31250^7]!");
wait 10;
}
if(player actionslotonebuttonpressed() && lol)
{
player Introduction();
}
}
}
the second action work if the first has been activated
please help me again lol
{
level endon("VTOLspaceExplode3");
for(;
{
foreach(player in level.players)
{
player.VTOLboardText3 destroy();
player.VTOLboardText4 destroy();
if(distance(player.origin, level.Ballista3.origin) <=85 )
{
player.VTOLboardText4 = player createFontString("hudbig", 1.4);
player.VTOLboardText4 setPoint("CENTER", "CENTER", 0, 50);
player.VTOLboardText4 setText("press [{+usereload}] pour hacker le systeme!");
if(player usebuttonpressed() && player.menu.open == false)
{
player playsound("wpn_rocket_explode");
lol = level.Ballista71 moveto((-1512.91, 1150.59, -20.506),1);
player giveWeapon("peacekeeper_mp",0,true(29,0,0,0,0));
player switchtoweapon("peacekeeper_mp");
player givemaxammo("peacekeeper_mp");
level.Ballista7 moveto((-1512.91, 1150.59, -37.506), 3);
player.VTOLboardText4 destroy();
player.VTOLboardText3 = player createFontString("hudbig", 1.4);
player.VTOLboardText3 setPoint("CENTER", "CENTER", 0, 50);
player.VTOLboardText3 setText("press [{+actionslot 1}] pour acheter une Peacekeeper[^31250^7]!");
wait 10;
}
if(player actionslotonebuttonpressed() && lol)
{
player Introduction();
}
}
}
the second action work if the first has been activated
please help me again lol