AdrenalineX Forums

General => AdrenalineX Development => Bug Reports => Topic started by: [MAF]Rac3r on February 28, 2010, 09:29:04 am

Title: Mode Switching Thread [Notice]
Post by: [MAF]Rac3r on February 28, 2010, 09:29:04 am
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.
Title: Re: Mode Switching Thread
Post by: [MAF]falky on February 28, 2010, 09:30:35 am
Neat