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-27-2013, 01:38 AM #11
Originally posted by Taylor View Post
You are using it wrong, i had silent_cobra22 test ot fully


Hmm I wonder where I'm screwing up then... anyway cbf to mess with anything now.
03-01-2013, 01:11 AM #12
OmGRhys-x
Are you high?
Originally posted by another user
Crecits:


Your Spelt Credits Wrong btw :P
Nice Taylor Smile

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo