Author Topic: Mode Switching Thread [Notice]  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,807
  • Well, this is embarrassing.
    • View Profile
Mode Switching Thread [Notice]
« 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.
« Last Edit: January 23, 2012, 09:00:49 pm by [MAF]Rac3r »

Offline [MAF]falky

  • Admin
  • Posts: 2,750
    • View Profile
Re: Mode Switching Thread
« Reply #1 on: February 28, 2010, 09:30:35 am »
Neat