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-15-2011, 08:31 AM #2
Dreamcather
Call me Eddie Winky Winky
This not new... I have seen this in many waw patches

The following 3 users groaned at Dreamcather for this awful post:

Blackstorm, Diddles2Fresshh, x-Roniie-x.
10-15-2011, 08:40 AM #3
lallyman
Can’t trickshot me!
Originally posted by EddieMeduza View Post
This not new... I have seen this in many waw patches


i never said it was new. i never saw it in cod4 so i made it myself. and ive seen it in W@W and MW2. like i said, i wanted to know how i did on my first script i made by myself. :\
10-15-2011, 08:46 AM #4
Blackstorm
Veni. Vidi. Vici.
Good job on your first script bro! Keep on practicing, it'll only make you better. Smile
10-15-2011, 09:09 AM #5
lallyman
Can’t trickshot me!
Originally posted by Blackstorm View Post
Good job on your first script bro! Keep on practicing, it'll only make you better. Smile


feels great to hear from a expert Happy Happy
10-15-2011, 10:42 AM #6
Woof
...hmm
Originally posted by lallyman View Post
feels great to hear from a expert Happy Happy

You lay out your scripts just like I do Happy (The proper way)

-edit
Btw as you are new to programming look at this:
    MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
self notify("Pressed_X");
if(self AttackButtonPressed())
self notify("Pressed_RB");
if(self AdsButtonPressed())
self notify("Pressed_LB");
if(self SecondaryOffhandButtonPressed())
self notify("Pressed_LT");
if(self FragButtonPressed())
self notify("Pressed_RT");
if(self MeleeButtonPressed())
self notify("Pressed_Melee");
wait .05;
}
}

A fast way to do if statements Smile

The following user thanked Woof for this useful post:

lallyman
10-15-2011, 11:13 AM #7
Originally posted by EddieMeduza View Post
This not new... I have seen this in many waw patches

Stop Tell the script " i already seen this in W@W patches ".. We Are in COD4..
10-15-2011, 12:10 PM #8
Dreamcather
Call me Eddie Winky Winky
Originally posted by x. View Post
Stop Tell the script " i already seen this in W@W patches ".. We Are in COD4..


And?.. .
It is same game but diffirent number :P

The following user thanked Dreamcather for this useful post:

247Yamato
10-15-2011, 01:40 PM #9
Taylor
Former Black Knight.
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


Im Not Gunna Use The Monitor Buttons, Cuz Imma Make A Mini Cod Jumper In My Patch, So Ill Just Add To The Cod Jumper Thread:

if(self MeleeButtonPressed())
{
self notify("Save");
wait .3;
}
if(self UseButtonPressed())
{
self notify("Load");
wait .3;
}
YARD()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Save");
wait 0.01;
self waittill("Save"); ///This So They Have To Double Tap It, So It Doesnt Save When U Just Click It
self.Position = self.Origin;
self.LookAngles = self.Angles;
self iPrintln("^5Position Saved");
}
}

YARD2()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Load");
wait 0.01;
self waittill("Load"); ///Again, Have To Double Tap
wait 0.5;
self setOrigin(self.Position);
self setPlayerAngles(self.LookAngles);
self iPrintln("^5Position Loaded");
}
}
10-15-2011, 02:27 PM #10
Originally posted by xYARDSALEx View Post
Im Not Gunna Use The Monitor Buttons, Cuz Imma Make A Mini Cod Jumper In My Patch, So Ill Just Add To The Cod Jumper Thread:

if(self MeleeButtonPressed())
{
self notify("Save");
wait .3;
}
if(self UseButtonPressed())
{
self notify("Load");
wait .3;
}
YARD()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Save");
wait 0.01;
self waittill("Save"); ///This So They Have To Double Tap It, So It Doesnt Save When U Just Click It
self.Position = self.Origin;
self.LookAngles = self.Angles;
self iPrintln("^5Position Saved");
}
}

YARD2()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill("Load");
wait 0.01;
self waittill("Load"); ///Again, Have To Double Tap
wait 0.5;
self setOrigin(self.Position);
self setPlayerAngles(self.LookAngles);
self iPrintln("^5Position Loaded");
}
}
You should put those into one function rather than two really. And that won't just work on double tap like that , it will just wait for that button to be pressed twice. You could press it once, wait 30 seconds and then press it again and it will still run the function.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo