14.10.2009, 20:48
Why?
- I am posting this because I have found a bug and would like some people to confirm it before I put in the official bug report topic.
Details
This is a bug regarding gamemodes that use TogglePlayerSpectating before players are sent to class selection.
If you do TogglePlayerSpectating(playerid, 0)... a player will go to class selection if his spawn info isnt set. However, if you load another gamemode (/rcon changemode) that also puts players into spec mode before csel, clients will spawn when you do "TogglePlayerSpectating(playerid, 0)" without ever seeing class selection because there spawn info is still set from the last gamemode and was not cleared. If each players quits their game and reconnects it does work fine though.
To showcase this bug, I have created a gamemode that uses spectate before csel, and by using the grandlarc gm you can see this bug for yourself.
Example Gamemode: http://www.killadel.com/files/bare.pwn
To see the bug, load the bare example gamemode ^ in your server and spawn, then do /rcon changemode grandlarc
You will spawn on grand larceny without ever seeing the class selection.
Anyone with a few minutes of spare time, please confirm this bug so it can be fixed.
- I am posting this because I have found a bug and would like some people to confirm it before I put in the official bug report topic.
Details
This is a bug regarding gamemodes that use TogglePlayerSpectating before players are sent to class selection.
If you do TogglePlayerSpectating(playerid, 0)... a player will go to class selection if his spawn info isnt set. However, if you load another gamemode (/rcon changemode) that also puts players into spec mode before csel, clients will spawn when you do "TogglePlayerSpectating(playerid, 0)" without ever seeing class selection because there spawn info is still set from the last gamemode and was not cleared. If each players quits their game and reconnects it does work fine though.
To showcase this bug, I have created a gamemode that uses spectate before csel, and by using the grandlarc gm you can see this bug for yourself.
Example Gamemode: http://www.killadel.com/files/bare.pwn
To see the bug, load the bare example gamemode ^ in your server and spawn, then do /rcon changemode grandlarc
You will spawn on grand larceny without ever seeing the class selection.
Anyone with a few minutes of spare time, please confirm this bug so it can be fixed.