Post: Script Freezing on me. Help!
10-05-2015, 01:17 AM #1
Alccx
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); I tried to make a gsc script where if you press right on the d-pad, It would save your current location and next time you spawn in from dying it would teleport you to that saved position.
but it keeps on freezing my console every time I spawn in.

    #include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");

self thread monitorST();

if(self.st == true)
{
wait 1;
self setOrigin(sto);
}
}
}

monitorST()
{
self endon("disconnect");
self endon("death");
self.buttonReleased = true;
for(;Winky Winky
{
wait 0.01;
if(self actionslotfourbuttonpressed() == false)
{
self.buttonReleased = true;
}
else if(self actionslotfourbuttonpressed() == true && self.buttonReleased == true)
{
self thread SpawnTele();
self.buttonReleased = false;
}
}
}

SpawnTele()
{
sto = self.origin;
self iprintln("Spawn Tele set to " + sto);
}


Please help me! Thanks! Smile
Last edited by Alccx ; 10-05-2015 at 01:18 AM. Reason: Typo correction
10-08-2015, 11:42 PM #11
oCmKs_4_LiFe
< ^ > < ^ >
Originally posted by GentleSlugger View Post
Lmfao maybe where you are from its time to sleep but its not even 9 pm for me. I actually can code gsc fyi theres a lot of people here who cannot fucking code.


ur 13 9pm is late for u kid. and please show me a code u have made and a decent code too not a fucking loop or sum shit.
10-08-2015, 11:47 PM #12
itsSorrow
In my man cave
Originally posted by LiFe View Post
ur 13 9pm is late for u kid. and please show me a code u have made and a decent code too not a fucking loop or sum shit.


Can't you read I said its not 9 pm for me.. ffs
10-08-2015, 11:58 PM #13
oCmKs_4_LiFe
< ^ > < ^ >
Originally posted by GentleSlugger View Post
Can't you read I said its not 9 pm for me.. ffs


dont change the subject just because u have never made a script. i dont give a fuck im out. in future dont quote me with ur bullshit or i'l just roast u again! GG.
10-08-2015, 11:59 PM #14
itsSorrow
In my man cave
Originally posted by LiFe View Post
dont change the subject just because u have never made a script. i dont give a fuck im out. in future dont quote me with ur bullshit or i'l just roast u again! GG.


Roasted me? I didn't get roasted by a fucking 60 year old ****** now go take your pills.
10-09-2015, 12:15 AM #15
xD loool
10-09-2015, 12:53 AM #16
itsSorrow
In my man cave
Originally posted by Raise View Post
xD loool


Read your mood thats all I have to say.
10-09-2015, 02:17 AM #17
DoraTheKiller97
Treasure hunter
Originally posted by GentleSlugger View Post
Read your mood thats all I have to say.

Calm down kiddo if your brain doesn't hurt now its certainly gonna hurt soon Winky Winky
10-09-2015, 02:18 AM #18
itsSorrow
In my man cave
Originally posted by dorathekiller97 View Post
Calm down kiddo if your brain doesn't hurt now its certainly gonna hurt soon Winky Winky


My brain won't hurt at all today already wanted to kill myself but I calmed down so no
10-09-2015, 02:21 AM #19
itsSorrow
In my man cave
Originally posted by FRINZ View Post
this sctually made the min i read it c: Geo


Also last time I saw you cannot have two accounts! Ban Hammer

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo