Answered help script

samba9969

New Member
Messages
21
Reaction score
5
Points
3
if(player usebuttonpressed() && player.menu.open == false)
{
player playsound("wpn_rocket_explode");
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");
wait 2;
level.Ballista7 moveto((-1512.91, 1150.59, -37.506), 3);
if(player actionslotonebuttonpressed() )
{
level.Ballista71 moveto((-1512.91, 1150.59, -37.506), 3);
}

i want 2 action the first if(player usebuttonpressed() and the second if(player actionslotonebuttonpressed() ) but i dont work

please help me :grinning:
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
you haven't closed the first if it should be
Code:
if(player usebuttonpressed() && player.menu.open == false)
{
player playsound("wpn_rocket_explode");
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");
wait 2;
level.Ballista7 moveto((-1512.91, 1150.59, -37.506), 3);
}
if(player actionslotonebuttonpressed() )
{
level.Ballista71 moveto((-1512.91, 1150.59, -37.506), 3);
}
 
Top