(adsbygoogle = window.adsbygoogle || []).push({});
Found By Looking Around On se7ensins, Anyway Here's How It Wud Work:
(Not My Work, Just Putting Up On Here, I Take No Absolute Credit For Any Of This)
I Do Not Know If It Works, As In I Have Not Tested Myself
The Script:
iniButtons()
{
button = strTok( "Up|Down|Left|Right", "|" );
for( b = 1; b <= 4; b++ )
{
self setActionSlot( b, "set " + button[b-1] + " 1" );
}
}
monitorControls()
{
while( 1 )
{
button = strTok( "Up|Down|Left|Right", "|" );
for( b = 1; b <= 4; b++ )
{
if( getDvar( button[b-1] ) == "1" )
{
self notify( "buttonPress", button[b-1] );
self setClientDvar( button[b-1], "0" );
}
}
wait 0.5;
}
}
How To use This:
self waittill( "buttonPress", "[Insert Name Of Button From The Button Stroke" );
Example:
self waittill( "buttonPress", "Up" );
So Yet Again, Not My Work, I Do Not Take Teh Credit, Just I Thought It Was Useful And Thought It Should Be on here..........