Forums Index >> Modding >> How do I take the /ufo command out?



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.

Saturday, July 02, 2005 at 3:03:30 PM

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 :)


Saturday, July 02, 2005 at 3:17:00 PM

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

Saturday, July 02, 2005 at 3:22:50 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

Saturday, July 02, 2005 at 3:23:54 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

Saturday, July 02, 2005 at 3:37:47 PM

MY way would make ppl be able to change to light medium and heavy, but not ufo :)


Saturday, July 02, 2005 at 3:40:31 PM

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

Saturday, July 02, 2005 at 3:50:32 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald