Post: [Script] iPrintXn
02-25-2013, 09:54 PM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({});
I thought about this while playing DerekTrotter's Final Edit of Elitemossy, which uses Blackstorm's "Stable" menu. Anyway, so it uses a setText on each toggle pressed. So I came up with an alternate of doing this, but without setText or iPrintln, etc..... And I wrote this function.

Video:
None, but if you record one it has to be on console because the dvar only works on there. (I think)

Scripting
    
iPrintXn(input)
{
self endon("disconnect");
self notify("refresh");
self WatchDisconnect();
if(!isDefined(self.AlreadyShowing))
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
else
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
}
WatchDisconnect()
{
self endon("refresh");
self waittill("disconnect");
self setClientDvar("ui_debug_localVarString", "");
//This function so is if you leave during the period of when the wait time is active, the text doesn't stay on ur screen.
}


How To Use:
    
doProMod()
{
if(self.proMod==0)
{
self.proMod=1;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Enabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","5");
self setClientDvar("FOV","120");
}
else
{
self.proMod=0;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Disabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","1");
self setClientDvar("FOV","30");
}
}


Crecits:
    
TheDevilHacker - For Finding the string dvar.
silent_cobra22 - Testing.
Me - Scripting.


Well, anyway. Enjoy! Smile
Last edited by Taylor ; 02-25-2013 at 09:56 PM.

The following 14 users say thank you to Taylor for this useful post:

BlurzGoHard, CoDyMoDz1000XD, EndlessSky8239, HanleyzHD♚, JackMods-, Kitty=^.^=, KM-_1337, Kush Friendly, M0T1VAT10N, silentcobra22, TheHolyMart, Vampytwistッ, xExploitModzHD, xxKILLALLMW2xx
02-25-2013, 10:28 PM #2
looks simple but cool good work tayor
02-25-2013, 11:13 PM #3
backstop12
Do a barrel roll!
Nice fgtCool Man (aka Tustin)
02-26-2013, 12:01 AM #4
HanleyzHD♚
Are you high?
Someone please record. Id like to see this.
02-26-2013, 12:50 AM #5
Taylor
Former Black Knight.
Originally posted by HanleyzHD View Post
Someone please record. Id like to see this.


I know right? It's actually very sick, but very easy coding.
02-26-2013, 12:58 AM #6
HanleyzHD♚
Are you high?
Originally posted by Taylor View Post
I know right? It's actually very sick, but very easy coding.

I will just put it in my patch, Il take your word for it Winky Winky
02-26-2013, 05:25 AM #7
So no pictures? K...
I'll try and cook one up.

Edit: Script is being a little shit and won't load properly. Are you sure it's correct? Or am I missing something....
Last edited by DidUknowiPwn ; 02-26-2013 at 06:55 AM.
02-26-2013, 12:15 PM #8
Taylor
Former Black Knight.
Originally posted by DidUknowiPwn View Post
So no pictures? K...
I'll try and cook one up.

Edit: Script is being a little shit and won't load properly. Are you sure it's correct? Or am I missing something....


You are using it wrong, i had silent_cobra22 test ot fully
02-26-2013, 01:21 PM #9
M0T1VAT10N
Do a barrel roll!
Originally posted by Taylor View Post
I thought about this while playing DerekTrotter's Final Edit of Elitemossy, which uses Blackstorm's "Stable" menu. Anyway, so it uses a setText on each toggle pressed. So I came up with an alternate of doing this, but without setText or iPrintln, etc..... And I wrote this function.

Video:
None, but if you record one it has to be on console because the dvar only works on there. (I think)

Scripting
    
iPrintXn(input)
{
self endon("disconnect");
self notify("refresh");
self WatchDisconnect();
if(!isDefined(self.AlreadyShowing))
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
else
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
}
WatchDisconnect()
{
self endon("refresh");
self waittill("disconnect");
self setClientDvar("ui_debug_localVarString", "");
//This function so is if you leave during the period of when the wait time is active, the text doesn't stay on ur screen.
}


How To Use:
    
doProMod()
{
if(self.proMod==0)
{
self.proMod=1;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Enabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","5");
self setClientDvar("FOV","120");
}
else
{
self.proMod=0;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Disabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","1");
self setClientDvar("FOV","30");
}
}


Crecits:
    
TheDevilHacker - For Finding the string dvar.
silent_cobra22 - Testing.
Me - Scripting.


Well, anyway. Enjoy! Smile


Thanks ill try putting this in survival port kk
02-26-2013, 08:34 PM #10
Originally posted by Taylor View Post
I thought about this while playing DerekTrotter's Final Edit of Elitemossy, which uses Blackstorm's "Stable" menu. Anyway, so it uses a setText on each toggle pressed. So I came up with an alternate of doing this, but without setText or iPrintln, etc..... And I wrote this function.

Video:
None, but if you record one it has to be on console because the dvar only works on there. (I think)

Scripting
    
iPrintXn(input)
{
self endon("disconnect");
self notify("refresh");
self WatchDisconnect();
if(!isDefined(self.AlreadyShowing))
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
else
{
self setClientDvar("ui_debug_localVarString", "^"+randomint(6)+input+"^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7 ^7");
self.AlreadyShowing=true;
wait 1;
if(!isDefined(self.AlreadyShowing))self setClientDvar("ui_debug_localVarString", "");
self.AlreadyShowing=undefined;
}
}
WatchDisconnect()
{
self endon("refresh");
self waittill("disconnect");
self setClientDvar("ui_debug_localVarString", "");
//This function so is if you leave during the period of when the wait time is active, the text doesn't stay on ur screen.
}


How To Use:
    
doProMod()
{
if(self.proMod==0)
{
self.proMod=1;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Enabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","5");
self setClientDvar("FOV","120");
}
else
{
self.proMod=0;
[FONT=Arial Black][SIZE=3][COLOR="#FF0000"]self iprintXn("Promod Disabled");[/COLOR][/SIZE][/FONT]
self setClientDvar("cg_gun_x","1");
self setClientDvar("FOV","30");
}
}


Crecits:
    
TheDevilHacker - For Finding the string dvar.
silent_cobra22 - Testing.
Me - Scripting.


Well, anyway. Enjoy! Smile


wheres my credits at mate? i told you about the ^7 to push the ':' and ':0' off the screen. i see you used it Winky Winky

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo