Ok here´s the script
Code: Select all
int mcdonald=0;
script 29 (void)
{//Nedm Script Switch counter to allow nedm
mcdonald++;
if(mcdonald==5)
{
ceiling_raisebyvalue(91,1,8);
printbold(n:0, s:" found the latest secret switch!!!");
}
else if(mcdonald==55)
{
ceiling_lowerbyvalue(91,100,8);
ceiling_raisebyvalue(92,1,8);
}
else if(mcdonald==105)
{
HudMessagebold(s:"WARNING, NEDM ACTIVED, IF YOU DONT WANT A CAT AND LOGO SPAM DO THIS:JUMP+CROUCH+FIRE AT THE SAME TIME,\n DO THE SAME DO ACTIVE IT AGAIN"; HUDMSG_FADEINOUT, 0, CR_UNTRANSLATED, 0.5, 0.5,15.1,0, 0.3);
acs_execute(30,0,0,0,0);
ceiling_lowerbyvalue(92,100,8);
delay(353);
floor_lowerbyvalue(89,200,200);
floor_lowerbyvalue(90,200,200);
tagwait(90);
Floor_Waggle(89, 2000, 100, 0, 0);
delay(100);
Floor_Waggle(90, 2000, 100, 0, 0);
}
}
int nedm_desactive=false;
script 30 (void) clientside
{
int counter=0;
int posy=-3.0;
while(posy<=0.05)
{
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_FADEINOUT, 0, CR_UNTRANSLATED, 0.5, posy,0.1,0, 0.3);
posy+=0.01;
delay(1);
}
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_PLAIN , 800, counter, 0.5, posy,0,0, 0);
Music_Played=3;
setmusic("NEDM",0,0);
delay(35);
spawnspot("FlareDisco",87,132,0);
ACS_Suspend(34,0);
acs_execute(31,0);
acs_Execute(32,0);
acs_execute(33,0);
while(true)
{
if(GetPlayerInput(ConsolePlayerNumber(),INPUT_BUTTONS)==13)
{
if(nedm_desactive==true)
{
setfont("smallfont");
printbold(s:"nedm actived");
nedm_desactive=false;
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_PLAIN , 800, counter, 0.5, posy,0,0, 0);
delay(50);
}
else
{
setfont("smallfont");
print(s:"nedm desactived");
nedm_desactive=true;
HudMessagebold(s:""; HUDMSG_PLAIN , 800, counter, 0.5, posy,1,1, 1);
delay(50);
}
}
delay(1);
}
}
So how did I fix it? simple
Code: Select all
int mcdonald=0;
script 29 (void)
{//Nedm Script Switch counter to allow nedm
mcdonald++;
if(mcdonald==5)
{
ceiling_raisebyvalue(91,1,8);
printbold(n:0, s:" found the latest secret switch!!!");
}
else if(mcdonald==55)
{
ceiling_lowerbyvalue(91,100,8);
ceiling_raisebyvalue(92,1,8);
}
else if(mcdonald==105)
{
HudMessagebold(s:"WARNING, NEDM ACTIVED, IF YOU DONT WANT A CAT AND LOGO SPAM DO THIS:JUMP+CROUCH+FIRE AT THE SAME TIME,\n DO THE SAME DO ACTIVE IT AGAIN"; HUDMSG_FADEINOUT, 0, CR_UNTRANSLATED, 0.5, 0.5,15.1,0, 0.3);
acs_execute(66,0,0,0,0);
ceiling_lowerbyvalue(92,100,8);
delay(353);
floor_lowerbyvalue(89,200,200);
floor_lowerbyvalue(90,200,200);
tagwait(90);
Floor_Waggle(89, 2000, 100, 0, 0);
delay(100);
Floor_Waggle(90, 2000, 100, 0, 0);
}
}
int nedm_desactive=false;
script 66 (void) clientside
{
acs_execute(30,0,0,0,0);
}
script 30 (void) clientside
{
int counter=0;
int posy=-3.0;
while(posy<=0.05)
{
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_FADEINOUT, 0, CR_UNTRANSLATED, 0.5, posy,0.1,0, 0.3);
posy+=0.01;
delay(1);
}
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_PLAIN , 800, counter, 0.5, posy,0,0, 0);
Music_Played=3;
setmusic("NEDM",0,0);
delay(35);
spawnspot("FlareDisco",87,132,0);
ACS_Suspend(34,0);
acs_execute(31,0);
acs_Execute(32,0);
acs_execute(33,0);
while(true)
{
if(GetPlayerInput(ConsolePlayerNumber(),INPUT_BUTTONS)==13)
{
if(nedm_desactive==true)
{
setfont("smallfont");
printbold(s:"nedm actived");
nedm_desactive=false;
SetFont("NEDML");
HudMessagebold(s:"A"; HUDMSG_PLAIN , 800, counter, 0.5, posy,0,0, 0);
delay(50);
}
else
{
setfont("smallfont");
print(s:"nedm desactived");
nedm_desactive=true;
HudMessagebold(s:""; HUDMSG_PLAIN , 800, counter, 0.5, posy,1,1, 1);
delay(50);
}
}
delay(1);
}
}
So, There´s another way that I could do the same thing without stoling a script to call another script?