Help Me With My Plugin
Code:
there seems to be a major problem, this only transfer u to CT, omfg, i kinda lost now |
have to read argument 2 (team)
|
Re: Help Me With My Plugin
Quote:
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:
Code:
[EDIT2] ignore this for now :P 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? :P Anyways I'll keep looking at it, but dont bother with any of the code I have written here just yet anyways... |
for starters.... now it compiles :)
Code:
... but after testing, it leaves you at the team select screen :? [edit] changed "menuselect 1" to "menuselect 2" (as that is actually the CT team and 1 is T :wink: ) Still leaves you on the team choose menu though....... (although you are sucessfully traded to the CT team) If you want seperate commands for each team and to be left at the choose team menu.... then the rest is simple :lol: Useing a single command and checking which team the player is on to begin with and useing if statements to decide what happens from there, should not be too hard to do at all. As far as being left on the choose team menu, I have no clue :? :P I only tested on an empty server so that could possibly be the cause, but I am not sure myself. I am not used to useing client commands to force a person to choose from the team or buy menus and it all looks like it should work to me :? (thats how it was written in similar codes anyways) Why not just use http://forums.alliedmods.net/showthread.php?t=344 ? Yours - Amx_Transfer NICK TEAM JGHG - amx_team <player name> <team (t/ct/#)> seems pretty similar to me :P |
oh i didn't realise, cuz i searched Team Changer but nothing
|
| All times are GMT -4. The time now is 14:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.