Forums Index >> Modding >> How do I take the /ufo command out?
Page : <1> :
Open Codes.cs and go to the latest function (codeAction) and find these lines:
If(%code $= "/ufo")
*something here*
After you do delete those 2 lines and save, remember to backup... Delete the Codes.cs.dso file and restart TT, then you shouldnt be able to use /ufo :)
Never mind! I figured it out. It was Codes.cs and I had to change ($pref::Server::TankChangers != 1) to ($pref::Server::TankChangers != 0)
Last edited: Saturday, July 02, 2005 at 3:24:45 PM
@Art Crazyİ
Hmm well if I did it the way I did it is it a problem? Do I need to change it back?
Last edited: Saturday, July 02, 2005 at 3:35:26 PM
Well I just tested all my other codes and all seem to be working fine. By changing "Tankchangers" to 0 instead of 1 no one can switch to UFO, Light, Medium, or heavy. Not even admins. I think I'm going to leave it like that and I'll let you know if I run in to any problems.
Oh and I'm going to do the same thing with projectiles that way admins can't change those either.
Last edited: Saturday, July 02, 2005 at 3:38:18 PM
MY way would make ppl be able to change to light medium and heavy, but not ufo :)
Ok thanks. Just to let you know I was wrong when I said admins can't change tanks, they can still change tanks when doing it the way I stated above. The same for projectiles. By setting the "projectilechangers" to 0 instead of 1 non admin players can't change projectiles but admins can still use the /marea /mspeedy and /mbounce.
Thanks for your help though Art Crazy
Page : <1> :
Trying to set up a server and I have gotten quite a bit done but one problem is I don't see how to turn the /ufo command off so non admin users can't use it. I'm sure it's in Codes.cs but I haven't been able to find it.