I guess it is just moving unassigned players to spectator as you say. That is what I was talking about. Removing those messages would be nice as you say you're doing. Also, I didn't check if this is how it works, but if it makes their team selection menu go away, that's probably a bad thing, although the way your plugin is written, I understand that a player would have to actually be on the spectator team for it to work correctly. I assume you could modify your code to count unassigned and spectator as the same thing when deciding whether or not to kick them, and alleviate the need to switch all unassigned players to spectator, although it would take a little more code (an extra clause in your if conditions each time the check for spectator status is made).
I'll do more testing with the spawn time thing, and see if it might be another plugin conflicting, but as I said, if I'm dead, I stop touching my computer indefinitely, a new round starts, and 20 seconds passes, nothing special happens.
Quote:
Originally Posted by Rothgar
Very simple fix, Valve normal CS Spectator mode makes the player commit suicide before moving them to spectator. This is what I do now for CS:S.
|
The players not being killed as they were switched was part of what made this plugin so useful. I was thinking of making that change to the source myself as you say, but it would make more sense I think to check if they're the last living player on their team, suicide them if they are, or switch them normally if they aren't. Alternatively, I wonder if there's a part of the player_death event that Valve normally calls to check for the win condition. If so, maybe the plugin could sort of pretend like the player died and call that same function. This is just speculation, because I don't know how to go about finding out everything the player_death event normally does.