Raised This Month: $ Target: $400
 0% 

Help Me With My Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blunted1
Senior Member
Join Date: Jun 2004
Old 07-12-2004 , 16:23   Re: Help Me With My Plugin
Reply With Quote #3

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...
Blunted1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode