Category: pawn

rss

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.

1
2
3
stock togglePlayerMapIconVisibility(playerid,bool:visible){
SetPlayerColor(playerid, (GetPlayerColor(playerid) | 0xFF) - (visible ? 0x00 : 0xFF));
}
In pawn By DracoBlue @ 18:36 03.06.2009

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 @ 23:01 11.04.2009

DJson 1.4.1 released

Today I want to announce a new release of DJson. The 1.4.1 features one little bug fix for loading files, with numbers (especially the 0) as element.

Also this update of course includes the changes from the 1.4 release: way faster caching. With 1.4 I managed to use the cache memory based and without journal (which is actually not needed here), which made the api-tests like 100 times faster. DJson is now really lightning fast!

Head over to the official DJson page or directly to the djson 1.4.1 download.

In open source, pawn & DJson By DracoBlue @ 20:16 18.09.2008

Dini 1.6 released

Today we have an update for the dini library. It has been a year since the last update, because dini is doing quite well for already 14500 downloaders (awesome!), but in a technical discussion at the sampforums we noticed, that it's possible to tweak the speed of dini - so why not make a new release?

DINI 1.6

Changes:

  • dini_Get uses less memory now
  • All dini_set/get functions use a faster check for the evaluation of the key now
  • dini_BoolSet uses less memory now
  • dependency to dutils has been removed

As you can see dini does not has any new functions, but is faster now. Hope you like it!

Thank you to Magor for the positive and negative remarks on dini and the resulting changes. If you need dini 1.5.1, I mirrored the old version, too.

In open source, pawn & dini By DracoBlue @ 20:36 16.09.2008

DJson 1.0 released

Today I released the first version of DJson. DracoBlue's DJson is a dynamic file based reader/writer for the pawn language.

Why Djson as name?
Because the saved files are encrypted with JSON (JavaScriptObjectNotation), which is a very light weight encoding for data structures and originally used to describe javascript objects.

Check out the official djson-page!

In open source, pawn & DJson By DracoBlue @ 12:24 25.08.2008

PawnDoc 0.1 released

Today I finished PawnDoc 0.1. You may download PawnDoc at the official PawnDoc wiki page.

The tool PawnDoc is a tool for the Pawn language similar to JavaDoc for Java. With pawndoc-comments in your pawn sourcecode you can generate documentation-html-files and even wiki-syntax! See dprop.inc.wiki.txt or dprop.inc.html as example (source .pwn).

You can also find a welcome post at samp forums. PawnDoc is written in Lua 5.1.

In open source, Lua, pawn & PawnDoc By DracoBlue @ 13:25 13.12.2007