Post: Few New Scripts + Edits
05-28-2016, 06:32 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); You must login or register to view this content.


Few scripts

Bow and arrow
You must login or register to view this content.

Gold Shoes
You must login or register to view this content.


Flip Flops
You must login or register to view this content.

Enjoy
Last edited by Pink Guy ; 05-31-2016 at 04:23 AM.

The following 5 users say thank you to Pink Guy for this useful post:

Dumble, HiddenHour, LiamsMods-YT, MrMoan, OfficialCoolJay

The following user groaned Pink Guy for this awful post:

Procyon
05-29-2016, 08:01 AM #2
MrMoan
Big Daddy
Cool codes buddy dont mind the thumbs down there just the assholes of ngu you will meet alot of them there leader is CmK

The following 3 users say thank you to MrMoan for this useful post:

ODLeslie, OlymP MoDz, Pink Guy
05-29-2016, 08:26 PM #3
Patrick
League Champion
Originally posted by MrMoan View Post
Cool codes buddy dont mind the thumbs down there just the assholes of ngu you will meet alot of them there leader is CmK

I should be one of the people groaning then Smile

Originally posted by TVFilthyFrank View Post
Snip

You could do it like this so you aren't using the same function over and over to change the model.

    ::Shoes, "p6_dogtags");


    Shoes(Model)
{
self.thesuit=booleanOpposite(self.thesuit);
self iPrintln(booleanReturnVal(self.thesuit,Model+" Shoes [^1OFF^7]",Model+" Shoes [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
self.tppx = 0;
if(self.modelSpawned == false)
self setclientthirdperson(1);
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
self.tppx = 1;
if(self.modelSpawned == false)
self setclientthirdperson(0);
}
}
Last edited by Patrick ; 05-29-2016 at 08:32 PM.

The following 5 users say thank you to Patrick for this useful post:

BlueeHasSwag, MrMoan, Pink Guy, stanzoheetik, TehMerkMods
05-30-2016, 01:55 AM #4
Originally posted by 32085
I should be one of the people groaning then Smile


You could do it like this so you aren't using the same function over and over to change the model.

    ::Shoes, "p6_dogtags");


    Shoes(Model)
{
self.thesuit=booleanOpposite(self.thesuit);
self iPrintln(booleanReturnVal(self.thesuit,Model+" Shoes [^1OFF^7]",Model+" Shoes [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
self.tppx = 0;
if(self.modelSpawned == false)
self setclientthirdperson(1);
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
self.tppx = 1;
if(self.modelSpawned == false)
self setclientthirdperson(0);
}
}


But this isnt even new...
05-30-2016, 02:11 AM #5
Patrick
League Champion
Originally posted by TheNiceUb3r View Post
But this isnt even new...


ik lol
05-30-2016, 11:07 AM #6
MrMoan
Big Daddy
Originally posted by 32085
ik lol

Never said you was one of then your just clickbait<3
05-30-2016, 02:23 PM #7
Originally posted by 32085
I should be one of the people groaning then Smile


You could do it like this so you aren't using the same function over and over to change the model.

    ::Shoes, "p6_dogtags");


    Shoes(Model)
{
self.thesuit=booleanOpposite(self.thesuit);
self iPrintln(booleanReturnVal(self.thesuit,Model+" Shoes [^1OFF^7]",Model+" Shoes [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
self.tppx = 0;
if(self.modelSpawned == false)
self setclientthirdperson(1);
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
self.tppx = 1;
if(self.modelSpawned == false)
self setclientthirdperson(0);
}
}


I don't get why everyone here (not just you) uses these retarded ass functions for things that don't even need them. And then there's so much redundancy everywhere. Decided to clean your code up, hopefully some people can see how things should actually be done

    Shoes(Model)
{
self.thesuit=!self.thesuit;
self iPrintln(Model + " Shoes" + self.thesuit ? " [^1OFF^7]" : " [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
}
self.tppx = !self.thesuit;
if(!self.modelSpawned)
self setclientthirdperson(self.thesuit);
}

The following 3 users say thank you to John for this useful post:

jwm614, Patrick, Pink Guy
05-30-2016, 02:46 PM #8
Patrick
League Champion
Originally posted by John View Post
I don't get why everyone here (not just you) uses these retarded ass functions for things that don't even need them. And then there's so much redundancy everywhere. Decided to clean your code up, hopefully some people can see how things should actually be done

    Shoes(Model)
{
self.thesuit=!self.thesuit;
self iPrintln(Model + " Shoes" + self.thesuit ? " [^1OFF^7]" : " [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
}
self.tppx = !self.thesuit;
if(!self.modelSpawned)
self setclientthirdperson(self.thesuit);
}


I personally don't use codes like this tbh, but yeah i understand where you are coming from.
05-30-2016, 04:09 PM #9
jwm614
NextGenUpdate Elite
Originally posted by John View Post
I don't get why everyone here (not just you) uses these retarded ass functions for things that don't even need them. And then there's so much redundancy everywhere. Decided to clean your code up, hopefully some people can see how things should actually be done

    Shoes(Model)
{
self.thesuit=!self.thesuit;
self iPrintln(Model + " Shoes" + self.thesuit ? " [^1OFF^7]" : " [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
}
self.tppx = !self.thesuit;
if(!self.modelSpawned)
self setclientthirdperson(self.thesuit);
}


little touch up on that thesuit need to b defined an remove a simple snytax error

    Shoes(Model)
{
if(!isDefined(self.thesuit))
self.thesuit = false;
self.thesuit=!self.thesuit;
self iPrintln(Model + " Shoes" + self.thesuit ? " [^6ON^7]" : " [^1OFF^7]");
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
}
self setclientthirdperson(self.thesuit);
}
05-30-2016, 09:52 PM #10
DF_AUS
NextGenUpdate Elite
Originally posted by John View Post
I don't get why everyone here (not just you) uses these retarded ass functions for things that don't even need them. And then there's so much redundancy everywhere. Decided to clean your code up, hopefully some people can see how things should actually be done

    Shoes(Model)
{
self.thesuit=!self.thesuit;
self iPrintln(Model + " Shoes" + self.thesuit ? " [^1OFF^7]" : " [^6ON^7]"));
if(self.thesuit)
{
self attach(Model,"j_ball_le");
self attach(Model,"j_ball_ri");
}
else
{
self detach(Model,"j_ball_le");
self detach(Model,"j_ball_ri");
}
self.tppx = !self.thesuit;
if(!self.modelSpawned)
self setclientthirdperson(self.thesuit);
}


Quote from Mr john = codetag " It's all preference. Let people code however they like " :baws::baws::baws:

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

DoraTheKiller97, Pink Guy

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo