10 Feb 11, 04:02PM
(This post was last modified: 11 Feb 11, 05:31PM by JSchweigert.)
I'm a noob when it comes to scripting, but after reading all the commands and looking through here, I was able to come up with my first script. Please tell me if there is anything wrong or if there's anything I could fix/change.
(EDIT: Updated with newer version.)
(EDIT: Updated with newer version.)
[SELECT ALL] Code:
// --------------------------------
// No fog script by JSchweigert --
// Press "`" to turn it on/off. --
// --------------------------------
alias nofog [ if (!= $fog 1024) [ alias oldfog $fog; fog 1024; echo (c 0) "No Fog: ON" ] [ fog $oldfog; echo (c 3) "No Fog: OFF" ] ]
bind BACKQUOTE [ nofog ]