Aliases[0]=(Command="Button bFire | Fire | reportin | callmedic | fixjam | reload",Alias="Fire")
Every time you fire it will report your position.
If your weapon jams it will automatically fix it and if you run out of ammo it will automatically reload
It only reports when you hit the fire button its this still possible or need new code whis one dosent work for me
I know people have used such things in the past.
I'm not sure whether or not it works right now (but as you said, it didn't for you).
What it does is execute all the commands in the order that they are listed. So because you can report in while firing, each time you fire, it will report in (likely even if you try to start firing while you can't - while jumping or running for example), the same with the medic call (which will only be called if you actually need a medic), now the fix jam will not happen when you're firing (you can't do 2 things at once), but it will happen when your weapon is jammed. If your weapons is empty, you can't fire nor can you do a fix jam, so all that's left is to reload.
So it's quite a simple thingy.
However, as has been pointed out it is not without its flaws. For instance, it's not always best to reload or fix a jam as soon as you hit that point - sometimes it might be a lot better to through a grenade instead or sometimes it might be a good idea to just back away, but automatic reloading will rob you of that liberty.
I've never found this (and bernard, I'm just talking about the fire alias, not about anything else) to be too useful, but I suppose it might be for new players and since it's listed on official AA manual, I would say it isn't illegal at this moment.