How to load the clan onplayerrequestclass
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
If you're logging them in, if it's a player saved stat, then you load them before they even request the 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'.
The skin is going to be shown to the player only if he's on a clan, but the clan doesnt even load. Can you give me a code example , i would really appreciate it

EDIT:
Just to make things clear, clans do load from the database, but it won't load on the player when i'm checking if he's on a clan (if i'm doing it right..)and actually they can't view the clan chat while they're requesting their class, i know, i'm aware that OnPlayerRequestClass doesn't have to do with spawning the player, it's just the skin selection but still, if the player is not in a clan it should not show them the skin. If anyone could give me a code-example on that i would appreciate it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)