Forums Index >> Modding >> plzzzzzzz zzzzzz zzzzzzzzz zzzzzzzz help
Page : <1> :
Hi STRYDER,
I was wondering how to change the codes so only administrators could change tanks too ( /light, /medium, /heavy). I thought this was a thing related to your question so...somebody help us!!!! XD
JC*Ex-p
Leave me alone.PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 8(
@ JC
Go to your codes.cs file. Go to near te bottom where it says
Function codeaction(%...)
Underneath there will be a lotta else if , call lines , right? Now go to the else if lines that have the codes for the tanks. They will be /heavy,etc.... Underneath each code you'll see something like this:
Call("tankchanger",%sender,"******Tank");
Simply add a "%a2," after the %sender part. So...
Call("tankchanger",%sender,%a2,"*****Tank");
Note : the ****** indicates the tank you want to be only for admin. If you want all o' them to be for admin , you'll have to change all o' them !
Last edited: Saturday, March 26, 2005 at 5:52:07 AM
@ STRYDER(SA)© - Which observer script are you using, ScriptLine or Monkey Man?
If ScriptLine - Observer Revolution 1/observer script prefs.cs
//Allow People To Observe, Or Only Admins (true = Everyone / false = Admins Only)
//You Can Change This By Using {lockobserving While In-Game -- You Must Be An Admin
//That Command Will Make This Setting false If It's true, And true If It's False
$Allow::Observing = false;
If MonkeyMan - You can't. No preference file. But... If the client does not have observerMM.cs.dso installed they can't observe anyhow.
@aemorph - THE NEW MODDING RESOURCE
:
IMAGE SECTION
:
- Imageshack for Free Web Image Hosting
This site is easy to use and totally free, just upload the image and copy/paste the link they give you.
- xs.to for Free Web Image Hosting
This site is easy to use and totally free. Just select "choose file", select "upload", select "show thumbnail and codes", and copy/paste the code under "Forum code for embedding:"
@ JC - If you had read the Install.txt file that came with the admin/dash codes, then you would have seen...
Preferences Settings Changes
I moved the preferences settings for my admin system out of the main server preferences file. I also made most of the messages printed by the admin system customizable by editing this new preferences file (game/server/dash/prefs.cs). This enables people to change the messages displayed when performing administrative actions.
Key preference settings which affect the behavior of the server:
1=on, 0=off
$pref::Server::TankChangers = 1;
$pref::Server::TeamChangers = 1;
$pref::Server::ProjectileChangers = 1;
So just turn them off in the dash/pref.cs
// 1: players can change tanks; 0: players cannot change tanks
$pref::Server::TankChangers = 0;
MAX
Last edited: Saturday, March 26, 2005 at 6:58:30 AM
^ he wants it so that only admins are able to use that code. That way just simply turns off the code for everyone.
Thanks guys!!!
JC*Ex-p
No it doesn't.
My bad.
Very Nice sigs. Btw
All is well then?
Page : <1> :
Ok how do I make it so observing is olny for admin I make it like this or what
//Allow People To Observe, Or Only Admins(false = Everyone / true = Admins Only)
//You Can Change This By Using {lockobserving While In-Game -- You Must Be An Admin
//That Command Will Make This Setting false If It's true, And true If It's False
$Allow:bserving = true;
Last edited: Friday, March 25, 2005 at 7:27:54 AM