Post: load position gsc code help
08-14-2015, 04:38 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); whats the gsc code for "load position" and "save position" , i really need them i looked everywhere
(adsbygoogle = window.adsbygoogle || []).push({});
08-14-2015, 04:43 PM #2
itsSorrow
In my man cave
Originally posted by gdude999 View Post
whats the gsc code for "load position" and "save position" , i really need them i looked everywhere


Thats one of the easiest codes..

    
saveandload()
{
if (self.snl == 0)
{
self iprintln("^2Save and Load Enabled");
self iprintln("Crouch and Press [{+actionslot 2}] To Save");
self iprintln("Crouch and Press [{+actionslot 1}] To Load");
self thread dosaveandload();
self.snl = 1;
}
else
{
self iprintln("^1Save and Load Disabled");
self.snl = 0;
self notify("SaveandLoad");
}
}

dosaveandload()
{
self endon("disconnect");
self endon("SaveandLoad");
load = 0;
for(;Winky Winky
{
if (self actionslottwobuttonpressed() && self GetStance() == "crouch" && self.snl == 1)
{
self.o = self.origin;
self.a = self.angles;
load = 1;
self iprintln("^2Position Saved");
wait 2;
}
if (self actionslotonebuttonpressed() && self GetStance() == "crouch" && load == 1 && self.snl == 1)
{
self setplayerangles(self.a);
self setorigin(self.o);
}
wait 0.05;
}
}

08-14-2015, 04:51 PM #3
thanks but i need them seperate

1 script that loads, the other that saves
08-14-2015, 04:59 PM #4
itsSorrow
In my man cave
Originally posted by gdude999 View Post
thanks but i need them seperate

1 script that loads, the other that saves


Can't you split them up?..
08-14-2015, 05:03 PM #5
not really an answer i was looking for but il do that, thanks i guess
02-17-2017, 02:51 PM #6
what do i put for like add_option(B, "Save And Load", ::test); somone told me you can put anything there and when i did i froze
02-18-2017, 01:15 PM #7
Patrick
League Champion
Originally posted by thrifty665 View Post
what do i put for like add_option(B, "Save And Load", ::test); somone told me you can put anything there and when i did i froze


to save your location you simply just store your current origin in a var so for example
    self.savedOrg = self.origin;
then for loading your saved location you simply do
    self setOrigin((self.savedOrg));


If you still need help be sure to join our support chat Smile
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo