Post: Help on adding a stealth bind
02-05-2011, 02:14 AM #1
Creepz
Space Ninja
(adsbygoogle = window.adsbygoogle || []).push({}); If I posted in the wrong place, then mods go right ahead & move it to the right place.

Ok I was just wondering how to add another stealth bind.

I wanted a bind when I go prone & knife I get a random camo on my current weapon.
Every time I try something I get a syntax error.
All I did was change a little bit of things to a Demi-God bind & I came up with this.
The Camo() is in missions if that has anything to do with it.

    
tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("dpad_right", "+melee");
for (;Winky Winky
{
self waittill("dpad_right");
if ( self GetStance() == "prone" )( self Camo();
self iPrintln("Random Camo");
}
}
Every noob has to start somewhere right? =)

Edit: btw it's DEREKTROTTER's v8 patch.
(adsbygoogle = window.adsbygoogle || []).push({});
02-05-2011, 07:15 PM #2
Take out "self endon("endtog");"

It should help
02-05-2011, 09:21 PM #3
anddrew
League Champion
Originally posted by GaMeR View Post

    
tgCamo()
{
self endon("death");
self endon("endtog");
[color=red]self notifyOnPlayerCommand("dpad_right", "+melee");[/color]
for (;Winky Winky
{
self waittill("dpad_right");
if ( self GetStance() == "prone" )( self Camo();
self iPrintln("Random Camo");
}
}

[/COLOR][/COLOR][/quote]

is that right?
shouldn't it be:
self notifyOnPlayerCommand( "button_rstick", "+melee");
02-05-2011, 10:16 PM #4
Creepz
Space Ninja
Originally posted by TuhoajaFIN View Post
Take out "self endon("endtog");"

It should help


Originally posted by anddrew View Post
is that right?
shouldn't it be:
self notifyOnPlayerCommand( "button_rstick", "+melee");



Thanks for the replies, but I tried both of your suggestions & still I get a syntax error.:confused:
02-05-2011, 10:20 PM #5
Originally posted by GaMeR View Post
Thanks for the replies, but I tried both of your suggestions & still I get a syntax error.:confused:


how about self thread camo? :confused:
02-05-2011, 10:36 PM #6
Creepz
Space Ninja
Originally posted by TuhoajaFIN View Post
how about self thread camo? :confused:


Didn't work. Wow creating a bind is harder than I thought:wtf:
02-06-2011, 12:12 PM #7
anddrew
League Champion
Originally posted by GaMeR View Post
Didn't work. Wow creating a bind is harder than I thought:wtf:


I know Sad Awesome
I'm trying to make this work:
    
onPlayerSpawned()
{
self endon( "disconnect" );
if (self isHost())
{ self thread smallKick();
if (self.team == "allies")
{ self thread ToggleAimBot();
}
ToggleAimBot()
{
self notifyOnPlayerCommand( "button_rshldr", "+frag");
self notifyOnPlayerCommand( "button_lshldr", "+smoke");
for(;Winky Winky
{
self waittill("down");
self.Aimbot = 1;
self thread AimBot();
self iprintln("Aimbot Enabled");
self waittill("down");
self.Aimbot = 0;
self notify ("StopAimBot");
self iprintln("Aimbot Disabled");
}
}


Don't think it works yet :L
02-06-2011, 12:20 PM #8
*Hint* You all need to learn how to count Winky Winky (){} etc...

and you can call the command anything you like, it doesn't matter

eg: self notifyOnPlayerCommand("DaftVaderisCool","+actionslot 4");

self waittill("DaftVaderisCool");

That will still call the right dpad.. Smile

The following user thanked x_DaftVader_x for this useful post:

Creepz
02-06-2011, 01:36 PM #9
anddrew
League Champion
Originally posted by x View Post
*Hint* You all need to learn how to count Winky Winky (){} etc...

and you can call the command anything you like, it doesn't matter

eg: self notifyOnPlayerCommand("DaftVaderisCool","+actionslot 4");

self waittill("DaftVaderisCool");

That will still call the right dpad.. Smile


I did not know that, thanks Happy
02-06-2011, 06:12 PM #10
Creepz
Space Ninja
Originally posted by x View Post
*Hint* You all need to learn how to count Winky Winky (){} etc...

and you can call the command anything you like, it doesn't matter

eg: self notifyOnPlayerCommand("DaftVaderisCool","+actionslot 4");

self waittill("DaftVaderisCool");

That will still call the right dpad.. Smile


I never knew that. I got this but I get a unknown function.
Do I have to add a ( ) or { }?
    tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("CAMO", "+actionslot 2");
for (;Winky Winky
{
self waittill("CAMO");
if (self GetStance() == "prone")
{
self thread Camo();
self iPrintln("Random Camo");
}
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo