30.08.2018, 02:30
Quote:
Hello, how do i load the clan when the player requests his class
|
Also, be clear on where infact you want this, as request class, is when they are going through the skin selection, not requesting spawn.
If you allow this, someone could sit in the spawn window, and change classes, seeing all the teams chats.
Alright, now I've come back to looking at your code.... (because the spawn window has so much capability, no-one actually uses it, and when they do changes to it, they BREAK it, and it causes problems elsewhere in the script, and to be sure of this, I took your code out, to look at after I had made the above)
No... Just no, you should revise this, as really, if it is after them logging in, then when they are logging in, is where you should be loading their clan into their enum.
You should only set the team associations on spawn in a class selection screen, and when they are in that window, they should be not getting any of those messages anyway, or anything, as they aren't 'in the game'.