@Artifact
Won't work for what i want to do believe me, the join team menu and stuff can be blocked easily, so the commands, but i need to be able to still use the commands via server call
@ESForces not the retry is my problem
I want to create a game manager, like a waiting lobby, which is kind of complicated
@Artifact
Won't work for what i want to do believe me, the join team menu and stuff can be blocked easily, so the commands, but i need to be able to still use the commands via server call
Is this your only issue? You can handle this by allowing the commands only when you have a bool set to true.
So 99% of the time, set it to false so players cannot use it. Then when your plugin needs to call it, set it to true, call as needed, set back to false.
If this doesn't sound like it'll work, give more details about what you're trying to accomplish, I'm sure it's doable somehow.
Something like this. You can make this also block only specific changes like spec to t/ct or whatever. To use this, go in game and select a team. Type 'toggle' in chat and then attempt a team change -- you should be blocked. Type 'toggle' again to re-enable the ability to change teams.
I was thinking about that but i thought there may be an alternative
It is a little complicated to explain since there are more factors involved in the functionality of it
I guess i will just use the bool for now, since the project was stagnant for the last couple days
I was thinking to execute joinclass and jointeam on him on putinserver, but somehow to forbid the server to spawn him, then move him to unassigned.. this would simplify things alot..