Adobe Flash AS 2 snowflakes snowing effect script December 20th, 2009
Well, i was bored again, and here is the outcome: A snow effect for Flash AS 2, which uses very less CPU power.
It is extremely simple to use:
1. Create a new empty movieclip on the top layer of your (root) movie.
2. Move the new movieclip at the x and y position 0 Pixel.
3. Copy the following code to the first frame in your new movieclip: Flash Snow Script
Posted in Programming, Tools | No Comments »
Twitter made easy – How to tweet with PHP with 19 lines of code October 7th, 2009
You know the dilemma, you want to write a simple tweeting PHP script and have to mess around with the Twitter API.
With the following small script you can tweet with a simple function call. It IS that simple (And SSL secured!!!).
Here’s the function:
Posted in Programming | No Comments »
DIV layer with 100% height, the Javascript way July 1st, 2009
When you create a div layer with 100% width and height, the height is always only the height of the browser window, not of the page content (which can be much higher).
To solve this, give the layer div an id and use the following JS code inside the layer div:
<script type="text/javascript">document.getElementById("yourlayerid").style.height = document.getElementsByTagName("body")[0].offsetHeight + "px";</script>
The code is very simple, it gets the height of the content (the body element) and gives it the layer div.
Tested in Opera, Firefox and *barf* MSIE (8).
Posted in Programming | 4 Comments »
On-the-fly Picture Swapping, how to get it work in MSIE June 5th, 2009
To swap or reload a picture on the fly is easy with Javascript. Just give the img tag a unique id and execute the following command in javascript:
document.getElementById("picture").src = "/img/cool-picture.jpg";
Now comes the glitch in (guess where) Internet Explorer: If you want to reload a picture that has changed on the server (let’s say you have overwritten the picture with a php gd-lib script in the background), the Internet Explorer (i call him msie, spoken “emsy”) always keeps the cached picture instead of reloading the picture from the server like opera and firefox do.
You can fix this behaviour with a simple cache-avoiding technique: Add a random number as a parameter, as shown in the following code, that’s it.
document.getElementById("picture").src = "/img/cool-picture.jpg?r=" + Math.floor(Math.random() * 1000);
Posted in Programming | No Comments »
TimeWaster’s Banking Script for CS:S Eventscripts February 7th, 2009
TimeWaster’s Banking Script is an advanced bank based on Eventscripts v1.5 and a SQLite database which makes it incredibly fast.
There’s an converter included to convert and copy “EternalBank” bank accounts for your easy switching pleasure.
Posted in Plugins, Programming | 23 Comments »
TimeWaster’s Happy Hour Script for CS:S Eventscripts December 28th, 2008
TimeWaster’s Happy Hour Script v1.0 for Counter Strike Source
This script will give every player weapons and equipment for free at the period you define.
Posted in Plugins, Programming | 6 Comments »
ClickForYou September 27th, 2008
ClickForYou is a nifty little tool i wrote to be able to cheat in the game Insaniquarium, a game made by the PopCap guys.
How does it work?
That’s Easy: After you ran the executable and pressed the “Pause” button on your keyboard, it emulates a left click on your mouse every 20 milliseconds. This means you are clicking the left button on your mouse 50 times a second without moving your finger. To stop clicking, simply press your “Pause” key again.
