Need Help
DG-Soap-Suds
Join Date: 2003-06-05 Member: 17035Members
<div class="IPBDescription">Some Scripting Involved</div> I need help creating a script for a clock. A client side script. can someone teach me how??? I want to have a clock in the corner of my screen during half-life beable to press a bind and the fvox will tell me the time too. If you could help that would be cool.
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
Comments
*Edit*
The color message.. er.. I don't even know what you mean by the csay, I'm assuming thats the message kind of stuff done through AdminMod... but in a script you would have..
alias activated "developer 1;echo Script Activated;developer 0"
Then just add activated into the script line. I have no idea what you mean by system time.... and as far as a score report.. try pressing the tab button.
As far as I know, you can't get the system time from hl, I don't think theres a way to track indvidual marine score, theres no way to see when a kill/death happened.. and you cant store variables.. The activated part has been answered <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
As far as an AFK script..
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
alias afk "say I am AFK; bind <somekey> back"
alias back "say I am back; bind <somekey> afk"
bind <somekey> afk
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
That would be a basic one, I see no way to abuse that. On the server(s) I play on, it auto-kicks you if you text spam the server...
You could probably make an external program, but then you couldn't use it on any cheating death servers...
I wanted to do sumthing a little like that (but without the AFK script)...
I found a little program by [LoG]BillDoor called SparkyUtils, made for TFC that will let u print messages and stuff, show systemtime and scores, but it's not a hack...
Unfortunately, it was only for TFC, so i changed a few lines of codes to let it work for any mod <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
The hooking code is based on OGC, so any coder could easily abuse it, so i'm not going to upload the source here, but if you would like it, PM me and i'll e-mail it to you <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Also, i'm working on some upgrades to it, including MSN, AIM and ICQ support, but those won't be finished for a while
--EDIT-- Oh, and as devicenull says, it doesn't work on CD =/ --EDIT--
the most you can do are "developer 1; echo mymsg; developer 0"
this is the normal way of giving your self activation cues and what not.
for more info:
<a href='http://half-life.gamehelp.com/' target='_blank'>I AM HL</a>
GL mate <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
LOL
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
So Glad There Are Still Nice People In This World..
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
Didn't see this thread, and didn't wanna search
A program called Hlamp can echo/say the time.. and can be used on cd required servers
Go here: <a href='http://half-life.gamehelp.com/' target='_blank'>http://half-life.gamehelp.com/</a>
(Someone already said it, go look at that, its the best for scripting)
All external programs are either mods or Hooks, and b/c hooks are ussed to cheat, any server with anti cheat stuff will detect it as a hack.
HOWEVER, you can do some rather good stuff with just plain old HL scripts, and for that all you need is notepad <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
The basis of most HL scripting is binds and Aliases. Binds are simply bind set actions to a key. Aliases are the same deal however they can be much more complex.
again, i am hl is the place to learn how to script.
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
Didn't see this thread, and didn't wanna search
A program called Hlamp can echo/say the time.. and can be used on cd required servers
Go here: <a href='http://half-life.gamehelp.com/' target='_blank'>http://half-life.gamehelp.com/</a>
(Someone already said it, go look at that, its the best for scripting) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
HLAmp is, as Thansal says, a hook.
Although this is true, it also works on server with VAC or CD. This isn't because it has been cleared by the makers or anything, but because it is written in machine code, which can hook the code without being detected.
With it you can find probably everything you asked for.. hlamp is <a href='http://www.hlamp.com' target='_blank'>hlamp.com</a>