Quote:
|
Originally Posted by Poison_Jay
-CODE-
there seems to be a major problem, this only transfer u to CT, omfg, i kinda lost now
|
I'm not sure of your problem exactly from what you said.... but it sounds like you are wondering why this will only transfer a player to the CT team....
If that is the problem, the answer is quite simply because that is what you told it to do.
-removed code-
[EDIT]After looking at your code for more than twelve seconds it appears what you may be after is a command that will switch you to the opposite team regardless of which team you are on......
If that is so then you just have to make a check for which team you are on, then if player team is,
Terrorist use....
Code:
if (player != 0) client_cmd("menuselect", "1")
or if CT use...
Code:
if (player != 0) client_cmd("menuselect", "2")
[EDIT2] ignore this for now

your plugin seems to have more problems than I anticipated...... is the fact that the person is switched to CT not your main problem by any chance?
Anyways I'll keep looking at it, but dont bother with any of the code I have written here just yet anyways...