Post: [SCRIPT] Confirmation Text (universal)
02-20-2012, 03:46 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have seen this in some patches and idk if it has been released.

Here is my version of confirmation text using BS button monitoring..

in your menu option you would put..
    
testThread()
{
ask = self thread confirmation("Say Hi");
if(ask)
self sayall("hi!"); // if(!ask) example if false
}


Add this anywhere in your patch:

    
confirmation(text)
{
a = self createFontString("default", 1.6);
a setPoint("CENTER", "MIDDLE", 0, 0);
a setText("Do you want to" + text + "?\n[{+gostand}] - Yes [{+usereload}] - No");
self thread monitorButtons();
for(;Winky Winky
{
self waittill("buttonPress", button);
if(button == "A")
{
a destroy();
return true;
}
if(button == "X")
{
a destroy();
return false;
}
}
}

monitorButtons()
{
self endon( "disconnect" );
self endon( "death" );
ent = spawnStruct();
buttons = strTok( "A|+gostand;X|+usereload;RT|+attack", ";" );
for( i = 0; i < buttons.size; i++ )
{
split = strTok( buttons[i], "|" );
self notifyOnPlayerCommand( split[0], split[1] );
}
for( ;; )
{
for( i = 0; i < buttons.size; i++ )
{
button = strTok( buttons[i], "|" );
self thread waittill_string( button[0], ent );
}
ent waittill( "returned", btn );
ent notify( "die" );
self notify( "buttonPress", btn );
}
}



now whenever you want a confirmation screen just put self thread confirmation(); Winky Winky
if it's true then it works if not then nothing happens Smile
(adsbygoogle = window.adsbygoogle || []).push({});

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

Blackstorm, KingcreekS
02-20-2012, 04:02 AM #2
Blackstorm
Veni. Vidi. Vici.
yay you used my button handling Happy

---------- Post added at 09:02 PM ---------- Previous post was at 09:01 PM ----------

also i had something like this before but it was waaaay longer, good job Smile
02-20-2012, 04:11 AM #3
i heard you have huge penis Happy
Originally posted by Blackstorm View Post
yay you used my button handling Happy

---------- Post added at 09:02 PM ---------- Previous post was at 09:01 PM ----------

also i had something like this before but it was waaaay longer, good job Smile
02-20-2012, 04:23 AM #4
Cause your a noob bs?

:p jokes
02-20-2012, 04:35 AM #5
Blackstorm
Veni. Vidi. Vici.
Originally posted by tr0j4n View Post
i heard you have huge penis Happy


Sounds like you heard right :carling:

The following user thanked Blackstorm for this useful post:

02-20-2012, 07:45 AM #6
Vilerage
360 Black Scope
Hey i wanna put a confirmation system through menuSelect(){ }; but only for player options, I have two different menus "do what to player" and "give what to player" but it only shows the players name what would I need to do so it will show the players options,thanks...
02-20-2012, 06:47 PM #7
Originally posted by Vilerage
Hey i wanna put a confirmation system through menuSelect(){ }; but only for player options, I have two different menus "do what to player" and "give what to player" but it only shows the players name what would I need to do so it will show the players options,thanks...


menuOpt()
{
ask = self thread confirmation("open player menu");
if(!ask)
break;
else
///open player menu here
}
02-20-2012, 06:56 PM #8
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by SatanicHispanic View Post
I have seen this in some patches and idk if it has been released.

Here is my version of confirmation text using BS button monitoring..

in your menu option you would put..
    
testThread()
{
ask = self thread confirmation("Say Hi");
if(ask)
self sayall("hi!"); // if(!ask) example if false
}


Add this anywhere in your patch:

    
confirmation(text)
{
a = self createFontString("default", 1.6);
a setPoint("CENTER", "MIDDLE", 0, 0);
a setText("Do you want to" + text + "?\n[{+gostand}] - Yes [{+usereload}] - No");
self thread monitorButtons();
for(;Winky Winky
{
self waittill("buttonPress", button);
if(button == "A")
{
a destroy();
return true;
}
if(button == "X")
{
a destroy();
return false;
}
}
}

monitorButtons()
{
self endon( "disconnect" );
self endon( "death" );
ent = spawnStruct();
buttons = strTok( "A|+gostand;X|+usereload;RT|+attack", ";" );
for( i = 0; i < buttons.size; i++ )
{
split = strTok( buttons[i], "|" );
self notifyOnPlayerCommand( split[0], split[1] );
}
for( ;; )
{
for( i = 0; i < buttons.size; i++ )
{
button = strTok( buttons[i], "|" );
self thread waittill_string( button[0], ent );
}
ent waittill( "returned", btn );
ent notify( "die" );
self notify( "buttonPress", btn );
}
}



now whenever you want a confirmation screen just put self thread confirmation(); Winky Winky
if it's true then it works if not then nothing happens Smile


Thought i'd stop by and say i downloaded installed MW2 Smile.

The following user thanked IVI40A3Fusionz for this useful post:

02-20-2012, 07:01 PM #9
Originally posted by IVI40A3Fusionz View Post
Thought i'd stop by and say i downloaded installed MW2 Smile.


Sweet, I'll be home later today so if u need help hmu

The following user thanked Jakes625 for this useful post:

IVI40A3Fusionz
02-20-2012, 07:05 PM #10
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by SatanicHispanic View Post
Sweet, I'll be home later today so if u need help hmu


Ya i'll talk to you on Skype i need to ask you some things Happy.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo