DIR Return Create A Forum - Home
---------------------------------------------------------
The Ultimate Knifing Clan Forum
HTML https://tukcforum.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: General Add-ons
*****************************************************
#Post#: 3008--------------------------------------------------
Co-Host (Remade, and Only Posted here.)
By: Wrapperup Date: May 30, 2012, 12:19 pm
---------------------------------------------------------
[center]EDIT1:
I realize that Cat123 has already made a co-host script.
But I don't care, This one has a CoHost Banner :P
Also, Mine was a Private Release, until now.
(First Copy given to Destructinator, in April.)
Also, this was NOT a remake of Cat123's co-host (Thanks for not
telling until i hit the boiler ;D)
I had an old, dusty co-host mod, this is a remake of my co-host
mod
EDIT2:
Whoops, i forgot to put Download link!
[/center]
LEGEND
----------
Orange - Server Commands.
Red - Title of Mod.
White - Descriptive Information
‌• - Important Update Notice / Patch notes.
◦  - Planned Feature
‣ - New Feature
Hello Gentlemen, I have created a simple, elegant, and powerful
solution to all of your Badmining problems.
[font=calibri]
CO-HOST[/font]
Basically, This server script allows the Host and other Co-host
to make people Co-host.
This script has a few basic commands.
/Cohosthelp - Shows a Document of all the commands (please
exclude /warn, it will be in a future update.)
/CoHost [NAME]
This makes [NAME] Become a Co-host Manualy.
/AutoCoHost [NAME]
This makes [NAME] an auto Co-host and writes a file containing
who is co-host.
/DeCoHost [NAME]
This makes [NAME] if co-host not co-host anymore.
/AutoDeCoHost [NAME]
This erases the file of [NAME]'s BLID and De-cohost him/her.
/CoKick [NAME] [REASON]
This allows the Co-host to kick [NAME]. The Co-host can kick
Players, Admins, Super Admins. Co-host and Host are unbannable.
/CoBan [NAME] [TIME] [REASON]
This allows the Co-host to ban [NAME]. The Co-host can ban
Players, Admins, Super Admins. Co-host and Host are unbannable.
Please report ANY problems or errors on the topic.
Thank you for your time.
[center]CHANGELOG
=================================================
May 30, 2012 - 1:17 PM
-Update 1-
‌ • Remade and Renewed Co-host Script published
exclusively to this Forum.
• Created thread and a lot of edits.
Changes to Come:
◦ Custom sound to play for when a client becomes Co-host
◦ A Warn (/warn) Command (Use will possibly be: /warn
[NAME] [MESSAGE])
◦ Ability to customize Co-host grant message (Probably
not.)
=================================================[/center]
DOWNLOAD:
#Post#: 3014--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Cat123 Date: May 30, 2012, 2:19 pm
---------------------------------------------------------
Yesterday I was trying to create a new function to ban, but
CONSOLE looks nice >:D
Let's get started:
[code]%victim.isHost[/code]
Dude, you could easily use %victim.BL_ID == getNumKeyID()
[code] %client.chatmessage("<color:ffff00>Co-Host mod. Creator:
Wrapperup (BLID: 13308) Private script.");
%client.chatmessage("<color:ffff00>-----------------------------
--------------------------------");
%client.chatmessage("<color:ffff00>Host Commands");
%client.chatmessage("<color:ffff00>/cohost [NAME] - Manualy
co-host a person.");
%client.chatmessage("<color:ffff00>Co-Host Commands [NAME] -
Automatically co-host this person and when they join.");
%client.chatmessage("<color:ffff00>/cokick [NAME] - Kicks any
player except Co-Host and Host.");
%client.chatmessage("<color:ffff00>/coban [NAME] [TIME(-1 for
permanent)] [REASON] - Bans any player except Co-Host or
Host.");
%client.chatmessage("<color:ffff00>/warnp [NAME] [MSG]- Warn a
player of any incoming ban/kick");
%client.chatmessage("<color:ffff00>-----------------------------
--------------------------------");[/code]
Ever heard of \c0, \c1, \c2, \c3, \c4, \c5, \c6, \c7 and \c8?
In this case, you could use \c3 (Yellow)
[code] if(%client.isHost || %client.isCoHost)
{
if(isObject(%victim))
{
if(!%victim.isCoHost)
{
%file = new FileObject();
%filepath =
"config/server/cohost/"@%victim.getBLID()@".txt";
%file.openforWrite(%filepath);
%file.writeLine("isCoHost");
%file.close();
%file.delete();
messageall('MsgAdminForce',"<color:ffff00>"@%victim.name@"
has become <color:ffff88>Co-Host
<color:00ffff>[<color:00ff00>Auto<color:00ffff>]");
%victim.isCoHost = true;
}
}
} [/code]
Even heard how to use $Pref::Server ?
[code] function connectautocohost(%client)
{
if(%client.getBLID() $= getNumKeyID())
{
%client.isHost = true;
}[/code]
Wat?
[code]servercmdban("BLID",%victim.getBLID(),%time,%reason);[/cod
e]
if you don't know, theres a function to Ban:
[code]banBLID(ID,TIME,REASON);[/code]
Dude, Co-Host is Co-Host, its not like super admin, that you
give to everyone, Just give CoHost stats to one damn player! No
needs all of that!
#Post#: 3015--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Cat123 Date: May 30, 2012, 2:21 pm
---------------------------------------------------------
Plus: You made a unnecessary mess, you could just add the
servercmds to my original script (in JSSP)
Sometimes I feel jumping off the glass...
#Post#: 3019--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Wrapperup Date: May 30, 2012, 3:56 pm
---------------------------------------------------------
for the %client.isHost i used that to help shorten out things,
it did help out.
I wrote a file because i created this before i learned how to
fully edit strings
Ill probably just redo some of it
;D
EDIT
Co-host isnt for looks you know, it does have a use.
Though, it seems like your looking for a reason to criticize me
:-\
#Post#: 3020--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Cat123 Date: May 30, 2012, 4:19 pm
---------------------------------------------------------
[quote author=Cat123 link=topic=363.msg3015#msg3015
date=1338405704]
Plus: You made a unnecessary mess, you could just add the
servercmds to my original script (in JSSP)
Sometimes I feel jumping off the glass...
[/quote]
#Post#: 3021--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Cat123 Date: May 30, 2012, 4:21 pm
---------------------------------------------------------
[quote author=Wrapperup link=topic=363.msg3019#msg3019
date=1338411388]
for the %client.isHost i used that to help shorten out things,
it did help out.
I wrote a file because i created this before i learned how to
fully edit strings
Ill probably just redo some of it
;D
EDIT
Co-host isnt for looks you know, it does have a use.
Though, it seems like your looking for a reason to criticize me
:-\
[/quote]
Anyone with eval access can be Host, or CoHost, as I said, You
made a unnecessary mess, you could just add the servercmds to my
original script
#Post#: 3049--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Test Zombie Date: May 31, 2012, 12:34 pm
---------------------------------------------------------
Lol. thats the only thing i know. /#
/1 = Blue my fav :D
#Post#: 3106--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Unknown Lolzar Date: June 1, 2012, 6:03 pm
---------------------------------------------------------
Sorry but, you got pwned. so badly
#Post#: 3129--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Mr.Undead435 Date: June 3, 2012, 12:18 am
---------------------------------------------------------
How do you script weapons ._.
NOTE: I must learn how to script weapons before the "Zombies"
come.
#Post#: 3132--------------------------------------------------
Re: Co-Host (Remade, and Only Posted here.)
By: Tumbleweed Date: June 3, 2012, 7:10 am
---------------------------------------------------------
cool
*****************************************************
DIR Next Page