Post: Save/Load Positions
10-15-2011, 06:11 AM #1
lallyman
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); K, this is my first script that i wanted to post. its alot similar to DT's one in his thread but i assure you i didn't steal it. i made it from scratch. its prob one of the shitiest scripts out there :P

    
Lallyman()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Pressed_LT");
self.Position = self.Origin;
self.LookAngles = self.Angles;
self iPrintln("^5Position Saved");
}
}

Lallyman2()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Pressed_RT");
wait 0.5;
self setOrigin(self.Position);
self setPlayerAngles(self.LookAngles);
self iPrintln("^5Position Loaded");
}
}


If your menu/patch does not already have this, add it. i think...
    
MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
{
self notify("Pressed_X");
wait .3;
}
if(self AttackButtonPressed())
{
self notify("Pressed_RB");
wait .3;
}
if(self AdsButtonPressed())
{
self notify("Pressed_LB");
wait .3;
}
if(self SecondaryOffhandButtonPressed())
{
self notify("Pressed_LT");
wait .3;
}
if(self FragButtonPressed())
{
self notify("Pressed_RT");
wait .3;
}
if(self MeleeButtonPressed())
{
self notify("Pressed_Melee");
wait .3;
}
wait .05;
}
}


i hope to be making some other scripts to and get better Happy
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to lallyman for this useful post:

247Yamato, Blackstorm, Choco, Diddles2Fresshh, lovebros, Rea
10-16-2011, 09:50 PM #20
Karoolus
I'm the W@W Menu Guy !
    Positions()
{
while(self.positions) // to make it a toggle ?
{
if(self SecondaryOffhandButtonPressed())
{
time = 0;
while(self SecondaryOffhandButtonPressed())
{
time++;
wait .05;
}
if(time > 15) // .75 seconds to save location, shorter will make you teleport
{
self.locations["origin"] = origin;
self.locations["angles"] = angles;
}
else
{
if(IsDefined(self.locations))
{
self setOrigin(self.locations["origin"]);
self setPlayerAngles(self.locations["angles"]);
}
}
wait .4;
}
wait .05;
}
}


was bored & wrote this :mudkip:

---------- Post added at 11:50 PM ---------- Previous post was at 11:47 PM ----------

Originally posted by Correy View Post
much easier..
    
Save_Load()
{
self endon( "death" );
while(1)
{
if ( self attackButtonPressed() )
{
self.SavedPos = self.origin;
}
if ( self adsButtonPressed() )
{
self moveTo( self.SavedPos );
}
}


don't need any of the button coding or nothing Smile


unless you add a wait in the loop, your function won't do SH*T :p
10-16-2011, 09:51 PM #21
iReset Nigga
2Fresshh!!
Originally posted by IVI40A3Fusionz View Post
Yo x_DaftVader_x you know xCorrey's menu base the second one (the one from OptimusPine patch i think) i tried to add the overflow fix that Karoolus posted but i encountered a problem it showed the title text and let me scroll and choose options just you couldnt see the options :S. you know how to fix this? so i can have another go at adding it.


yes ur gonna have to rebuild the whole menu to configure with it i had that same prob and thats what insanely death told me
my advice is just use karoolus menu base and edit it thats the best thing to do
10-17-2011, 03:41 PM #22
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by iReset View Post
yes ur gonna have to rebuild the whole menu to configure with it i had that same prob and thats what insanely death told me
my advice is just use karoolus menu base and edit it thats the best thing to do


thats what im doing using Karoolus menu base ^^
10-18-2011, 12:24 PM #23
Correy
I'm the Original
Originally posted by Karoolus View Post
    Positions()
{
while(self.positions) // to make it a toggle ?
{
if(self SecondaryOffhandButtonPressed())
{
time = 0;
while(self SecondaryOffhandButtonPressed())
{
time++;
wait .05;
}
if(time > 15) // .75 seconds to save location, shorter will make you teleport
{
self.locations["origin"] = origin;
self.locations["angles"] = angles;
}
else
{
if(IsDefined(self.locations))
{
self setOrigin(self.locations["origin"]);
self setPlayerAngles(self.locations["angles"]);
}
}
wait .4;
}
wait .05;
}
}


was bored & wrote this :mudkip:

---------- Post added at 11:50 PM ---------- Previous post was at 11:47 PM ----------



unless you add a wait in the loop, your function won't do SH*T :p


oh yeah haha =D
10-18-2011, 08:09 PM #24
Choco
Respect my authoritah!!
Originally posted by lallyman View Post
K, this is my first script that i wanted to post. its alot similar to DT's one in his thread but i assure you i didn't steal it. i made it from scratch. its prob one of the shitiest scripts out there :P

    
Lallyman()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Pressed_LT");
self.Position = self.Origin;
self.LookAngles = self.Angles;
self iPrintln("^5Position Saved");
}
}

Lallyman2()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Pressed_RT");
wait 0.5;
self setOrigin(self.Position);
self setPlayerAngles(self.LookAngles);
self iPrintln("^5Position Loaded");
}
}


If your menu/patch does not already have this, add it. i think...
    
MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
{
self notify("Pressed_X");
wait .3;
}
if(self AttackButtonPressed())
{
self notify("Pressed_RB");
wait .3;
}
if(self AdsButtonPressed())
{
self notify("Pressed_LB");
wait .3;
}
if(self SecondaryOffhandButtonPressed())
{
self notify("Pressed_LT");
wait .3;
}
if(self FragButtonPressed())
{
self notify("Pressed_RT");
wait .3;
}
if(self MeleeButtonPressed())
{
self notify("Pressed_Melee");
wait .3;
}
wait .05;
}
}


i hope to be making some other scripts to and get better Happy


Congratulations on your first script Claps
10-20-2011, 06:37 PM #25
this is very old :P

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo