Python:

All of the python code below has been build for a Forgotten Hope 2(Battlefield 2 Modification) tournament. It can be activated by either the FH2 gameplayPlugin script or can be activated by a config file. Which is usually the easier method for the mappers, since the plugin system requires a little knowledge about programming where as the config system only requires the name of the plugin to execute it.
Most of the times it is not required to set any variables, therefore this hasnt been implemented. And if it is required it is usually easier to just edit the files themself.


Rallypoints system
I started working with python earlier this year(02-2010) when I was asked to have a look at some code for a tournament I play in. After a few days of messing about I got the original code working.
Eventually ending up with completely re-writing the code. What it does is change the squadleader system in Battlefield 2 to a Rallypoint system, as seen in some popular mods.
The squad leader now doesnt have to sit and hide in a corner so his team can spawn in, but he can go out and fight with them. The code allows the Squad leader to put down a rallypoint which can be used by anyone in his squad(max 6 people) to spawn on. It can be destroyed by friendly and enemy explosives.

click here for the code

Below is another bit of code, this sorts out the players of both sides and kicks people whom do not where the correct tags. Admins are excluded from this.

click here for the code

This is a experimental script, it allows the towing of objects in the battlefield 2 engine. It has to be limited to a vehicle per side as not to horribly stress the engine.

click here for the code