Post: Flip player code
05-14-2016, 12:09 AM #1
Saber_JZY
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Can some1 plz link to me the flip player code in Loz's menu or Blazed v1.
Thanks
(adsbygoogle = window.adsbygoogle || []).push({});
05-29-2016, 06:12 AM #11
Saber_JZY
Bounty hunter
Originally posted by AUS View Post
Extinct's is neater than mine dude,just change the way his code spawns the model and you should be good,here's mine from BlazeD v2,yet,your gonna have to alter a few lines to make it work with your menu ( nothing complicated though ),by the way,Extinct told me if you use tag_origin you don't need to use hide(); Smile


    
FlipMeee()
{
if (self.SxcMoves == 0)
self.SxcMoves = 1;
pN("", "cM");
self lb("t");
self thread Fliptimeee();
pN("^5Press [{+actionslot 3}] To Flip Left", "sD");
wait 2;
pN("^5Press [{+actionslot 4}] To Flip Right", "sD");
wait 2;
pN("^5Press [{+actionslot 2}] To 180 Flip", "sD");
wait 2;
pN("^5Press [{+actionslot 1}] To Disable Flipping", "sD");
}

Fliptimeee()
{
self endon("disconnect");
self endon("end_selFlip");

DF_AUS = safeSpawnScriptModel(self.origin);
DF_AUS setModel("defaultactor");
DF_AUS pN(DF_AUS, "sU");
self playerLinkTo(DF_AUS);

for(;Winky Winky
{
if (self.SxcMoves == 1)
{
if(self actionSlotthreeButtonPressed()){
DF_AUS RotateRoll(360, 1.5);}
if(self actionslottwobuttonpressed()) {
DF_AUS rotatepitch(-180,0.5);}
if(self actionslotfourbuttonpressed()) {
DF_AUS RotateRoll(-360, 1.5);}
if(self actionSlotOneButtonPressed()) {
self.SxcMoves = 0;
self lb("f");
pN("Flipping Motions: ^1OFF", "sN");
pN("", "sU");
DF_AUS delete();
pN("end_selFlip", "sT");}
}
wait 0.05;
}
}


Thanks df_aus,but can you make it work with my menu coz i freeze

Originally posted by iRnZ View Post
    FlipsToggle()
{
if(self.Flips == "BACKFLIP")
{
self notify ("end_Flip");
self unlink();
self thread doBackFlip();
self iPrintln("^2Back Flip");
self iPrintln("^2Press [{+actionslot 2}]");
self.Flips = "FRONTFLIP";
}
else if(self.Flips == "FRONTFLIP")
{
self notify ("end_Flip");
self unlink();
self thread doFrontFlip();
self iPrintln("^2Front Flip");
self iPrintln("^2Press [{+actionslot 2}]");
self.Flips = "LEFTFLIP";
}
else if(self.Flips == "LEFTFLIP")
{
self notify ("end_Flip");
self unlink();
self thread doLeftFlip();
self iPrintln("^2Left Flip");
self iPrintln("^2Press [{+actionslot 2}]");
self.Flips = "RIGHTFLIP";
}
else if(self.Flips == "RIGHTFLIP")
{
self notify ("end_Flip");
self unlink();
self thread doRightFlip();
self iPrintln("^2Right Flip");
self iPrintln("^2Press [{+actionslot 2}]");
self.Flips = "OFFFLIP";
}
else if(self.Flips == "OFFFLIP")
{
self notify("end_Flip");
self unlink();
self iPrintln("^1Flips Disabled");
self.Flips = "BACKFLIP";
}
}

doBackFlip()
{
self endon( "end_Flip" );
self endon( "game_ended" );
self endon( "disconnect" );

for(;Winky Winky
{
if(self actionSlottwoButtonPressed())
{
playeror = self GetOrigin();
playeran = self getPlayerAngles();
Flip_Crate = spawn( "script_model", playeror);
Flip_Crate setmodel("tag_origin");
Flip_Crate.angles = playeran;
Flip_Crate.origin = playeror;
self LinkTo( Flip_Crate );
Flip_Crate RotatePitch((2 * -180), 1.5);
wait 1.6;
self unlink();
Flip_Crate Delete();
}
wait 0.05;
}
}

doFrontFlip()
{
self endon( "end_Flip" );
self endon( "game_ended" );
self endon( "disconnect" );

for(;Winky Winky
{
if(self actionSlottwoButtonPressed())
{
playeror = self GetOrigin();
playeran = self getPlayerAngles();
Flip_Crate = spawn( "script_model", playeror);
Flip_Crate setmodel("tag_origin");
Flip_Crate.angles = playeran;
Flip_Crate.origin = playeror;
self LinkTo( Flip_Crate );
Flip_Crate Rotatepitch((2 * 180), 1.5);
wait 1.6;
self unlink();
Flip_Crate Delete();
}
wait 0.05;
}
}

doLeftFlip()
{
self endon( "end_Flip" );
self endon( "game_ended" );
self endon( "disconnect" );

for(;Winky Winky
{
if(self actionSlottwoButtonPressed())
{
playeror = self GetOrigin();
playeran = self getPlayerAngles();
Flip_Crate = spawn( "script_model", playeror);
Flip_Crate setmodel("tag_origin");
Flip_Crate.angles = playeran;
Flip_Crate.origin = playeror;
self LinkTo( Flip_Crate );
Flip_Crate Rotateroll((2 * 180), 1.5);
wait 1.6;
self unlink();
Flip_Crate Delete();
}
wait 0.05;
}
}

doRightFlip()
{
self endon( "end_Flip" );
self endon( "game_ended" );
self endon( "disconnect" );

for(;Winky Winky
{
if(self actionSlottwoButtonPressed())
{
playeror = self GetOrigin();
playeran = self getPlayerAngles();
Flip_Crate = spawn( "script_model", playeror);
Flip_Crate setmodel("tag_origin");
Flip_Crate.angles = playeran;
Flip_Crate.origin = playeror;
self LinkTo( Flip_Crate );
Flip_Crate Rotateroll((2 * -180), 1.5);
wait 1.6;
self unlink();
Flip_Crate Delete();
}
wait 0.05;
}
}


just use ::FlipsToggle


Thanks,but why such big code?

Originally posted by 32085
It does work lmao, you are probably getting a unknown function called "modelSpawner" here it is.
    modelSpawner(origin, model, angles)
{
obj = spawn("script_model", origin);
obj setModel(model);
if(isDefined(angles))
obj.angles = angles;
return obj;
}


Thanks Extinct,hope this time it works
05-29-2016, 06:22 AM #12
DF_AUS
NextGenUpdate Elite
Originally posted by JZY View Post
Thanks df_aus,but can you make it work with my menu coz i freeze



Thanks,but why such big code?



Thanks Extinct,hope this time it works



    
FlipMeee()
{
if (self.SxcMoves == 0)
self.SxcMoves = 1;
// closeMenu(); // Optional
//self.MenuLock = true;
self thread Fliptimeee();
self iprintlnbold("^5Press [{+actionslot 3}] To Flip Left");
wait 2;
self iprintlnbold("^5Press [{+actionslot 4}] To Flip Right");
wait 2;
self iprintlnbold("^5Press [{+actionslot 2}] To 180 Flip");
wait 2;
self iprintlnbold("^5Press [{+actionslot 1}] To Disable Flipping");
}

Fliptimeee()
{
self endon("disconnect");
self endon("end_selFlip");

DF_AUS = safeSpawnScriptModel(self.origin);
DF_AUS setmodel("tag_origin");
self playerLinkTo(DF_AUS);

for(;Winky Winky
{
if (self.SxcMoves == 1)
{
if(self actionSlotthreeButtonPressed()){
DF_AUS RotateRoll(360, 1.5);}
if(self actionslottwobuttonpressed()) {
DF_AUS rotatepitch(-180,0.5);}
if(self actionslotfourbuttonpressed()) {
DF_AUS RotateRoll(-360, 1.5);}
if(self actionSlotOneButtonPressed()) {
self.SxcMoves = 0;
//self.MenuLock = false;
self iprintln("Flipping Motions: [^1Disabled^7]");
self unlink();
DF_AUS delete();
self notify("end_selFlip");}
}
wait 0.05;
}
}


M8 Extinct is dangerous,watch his codes,full h@cker alert :p:p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo