Post: help with attach to player ( Fixed and feel free to use the code)
09-19-2016, 07:25 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); needs help because it keeps crashing maybe bacause i missing somthing and i am dumb

    attachtoplayer(player)
{
if(self.linktohim == 0)
{
self iPrintln("Attached To Player");
self playerlinkto(player, "j_head");
self thread ToggleGod();
self.linktohim = 1;
}
else
{
self iPrintln("Detached From Player");
self thread ToggleGod();
self.linktohim = 0;
self unlink();
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
09-19-2016, 05:15 PM #2
oCmKs_4_LiFe
< ^ > < ^ >
Originally posted by neb1998 View Post
needs help because it keeps crashing maybe bacause i missing somthing and i am dumb

    attachtoplayer(player)
{
if(self.linktohim == 0)
{
self iPrintln("Attached To Player");
self playerlinkto(player, "j_head");
self thread ToggleGod();
self.linktohim = 1;
}
else
{
self iPrintln("Detached From Player");
self thread ToggleGod();
self.linktohim = 0;
self unlink();
}
}

lol thats my dank code m8.

You must login or register to view this content.
09-19-2016, 05:29 PM #3
Hydrogen
Super Mod
Originally posted by LiFe View Post
lol thats my dank code m8.

You must login or register to view this content.


fuk yo code! Kappa

The following 2 users say thank you to Hydrogen for this useful post:

neb1998, oCmKs_4_LiFe
09-20-2016, 11:14 PM #4
Patrick
League Champion
Originally posted by neb1998 View Post
needs help because it keeps crashing maybe bacause i missing somthing and i am dumb

    attachtoplayer(player)
{
if(self.linktohim == 0)
{
self iPrintln("Attached To Player");
self playerlinkto(player, "j_head");
self thread ToggleGod();
self.linktohim = 1;
}
else
{
self iPrintln("Detached From Player");
self thread ToggleGod();
self.linktohim = 0;
self unlink();
}
}


Remove the 'self thread ToggleGod();' and you're good to go, close thread!

The following user thanked Patrick for this useful post:

neb1998

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo