Post: New Button Configuration; 2 In 1 Commanding!
11-22-2011, 08:55 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Yes this is code, it's actually what i set out to do along time ago with IELIITEM0DZX but for some reason never finished it.
this is very different to other button system heres why.

- You can make someone actually press the button.
- It can also be used as a button, if it's pressed.

    
ButtonPressed( button, func, input )
{
self.Pressed = [];
switch( button )
{
case "Frag": self.Pressed = "self fragButtonPressed"; break;
case "Smoke": self.Pressed = "self SecondaryOffHandButtonPressed"; break;
case "Square": self.Pressed = "self UseButtonPressed"; break;
case "Melee": self.Pressed = "self MeleeButtonPressed"; break;
case "Fire": self.Pressed = "self AttackButtonPressed"; break;
case "Aim": self.Pressed = "self AdsButtonPressed"; break;
}
if( isDefined( func ))
{
if( [[self.Pressed]]() )
{
if(!isDefined( input )) self thread [[func]]();
if( isDefined( input )) self thread [[func]](input);
}
}
wait .02;
return;
}


put that into your GSC somewhere.
and here's an example of your too methods.

- Make someone press it.
    
Player[i] thread ButtonPressed( "Frag" );


that will make him actually press it, but of course you can have functions and inputs..

heres the other example of if the button is pressed
    
iif( self ButtonPressed( "Frag" ) )
{
//a thread here.
}


here's another little way of if it's pressed, if the player presses it.
    
if( level.players[i] ButtonPressed( "Frag" ))
{
self suicide();
self iPrintln( "Dont Press That Button!" );
}


and it's just like that, use this on how you wish.. just state if you used it.
i have tested this, it does work.
(adsbygoogle = window.adsbygoogle || []).push({});

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

FAKA_ELITE, FourzerotwoFAILS, IVI40A3Fusionz, Bichote, Rea
11-22-2011, 10:23 PM #20
Originally posted by Blackstorm View Post
Well you didn't put a :carling: face after it implying that you were joking like most of the hipsters here would. :carling:


:carling: :carling: :carling: :carling: :carling: :carling: :carling: :carling: :carling:
11-22-2011, 10:24 PM #21
Blackstorm
Veni. Vidi. Vici.
Originally posted by Correy View Post
but i did test and when that button was pressed it done the function..


Maybe your PC is magic or something but it's impossible to call strings as a function lol /:
11-22-2011, 10:24 PM #22
Originally posted by Correy View Post
well arent you getting better Winky Winky!
I'm going to rank all the way up without getting any kills Smile
11-22-2011, 10:25 PM #23
Correy
I'm the Original
Originally posted by Blackstorm View Post
Maybe your PC is magic or something but it's impossible to call strings as a function lol /:


go on msn and team view me then :p
11-22-2011, 10:25 PM #24
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
:carling: :carling: :carling: :carling: :carling: :carling: :carling: :carling: :carling:


[img][URL]https://images3.wikia.nocookie.net/__cb20071019155932/uncyclopedia/images/7/7b/Dancing_banana.gif[/URL][/img]
11-22-2011, 10:25 PM #25
Originally posted by Blackstorm View Post
Maybe your PC is magic or something
It must be magic 'cos he said he deleted everything last week stare
11-22-2011, 10:26 PM #26
Blackstorm
Veni. Vidi. Vici.
Originally posted by Correy View Post
go on msn and team view me then :p


Later though yeah? :p
11-22-2011, 10:26 PM #27
Correy
I'm the Original
Originally posted by x. View Post
I'm going to rank all the way up without getting any kills Smile


how you going to do that ahha :carling:
11-22-2011, 10:27 PM #28
Originally posted by Correy View Post
how you going to do that ahha :carling:
pfft.. details..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo