Today, we'll be trying a new way of switching modes. The old system was flawed. Best example is /spec.
When we spec people, a few functions have to be set to SPEC_MODE for example.
When we type /race, it doesn't know if we were in spec, so even if we were not in SPEC, it would still have to set SPEC_MODE to off.
Another example /DM, if we return to /race, it didn't know we were in deathmatch so maybe wouldn't reset heath, armour or weapons.
OnPlayerModeChange(playerid, oldmode, newmode, disable);
Any problems switching modes, post them here please, or let me know on the server. Thanks.