dracoblue.net

Toggle Map-Icon Visibility for a Player

If you want to hide a specific player on the map, you can set the alpha value to 0x00. If you want to make him visible again, you just have to set it to 0xFF.

Since this is not always simple, to store the current color of the player in a invisible and a visible way, you can use bitwise or to do that task for you.

This is my togglePlayerMapIconVisibility function, which keeps the color of the player and toggles the player to visible or invisible on the map.

stock togglePlayerMapIconVisibility(playerid,bool:visible){
	SetPlayerColor(playerid, (GetPlayerColor(playerid) | 0xFF) - (visible ? 0x00 : 0xFF));
}

In pawn by DracoBlue @ 2009-06-03 | 103 Words

Could not complete the operation due to error 80020101

This happend to me when I tried to load ajax-content in internet explorer (worked fine in Firefox, etc), which had a script-tag without a valid comments tag.

So just for the record, here is the solution, which helped me.

Before (Broken):

<script type="text/javascript">
<!--
  alert('text');
// -->
</script>

Fixed (Working)

<script type="text/javascript">
// <!--
  alert('text');
// -->
</script>

In Internet Explorer, JavaScript by DracoBlue @ 2009-05-14 | 84 Words

Add Google Analytics (Tracking) to Redmine

Today I added some google analytics tracking to my redmine at

dev.webdevberlin.com.

This was pretty easy, open:

app/views/layouts/base.rhtml

Search for the

-tag and add the given code (from analytics page) before the tag.

You don't even need to restart your redmine.

Should work pretty much the same for all other tracking services!

In by DracoBlue @ 2009-04-17 | 53 Words

Online tool to autoindent Pawn-Code

Just a quick note, that I made one of my web-scripts available to everyone at TidyPawn.

I use TidyPawn usally to autoindent loosly formated pawn code.

In pawn by DracoBlue @ 2009-04-11 | 27 Words

DFairPlay Query-Server API

The dfairplay main servers, have a http-GET-based query system, which can be used by servers to check for unfair players.

Continue reading ...

In API, DFairPlay by DracoBlue @ 2009-04-07 | 343 Words

Page 26 - Page 27 - Page 28