View Full Version : [317] Custom Yell Command [317] C&P
Xdragon
June 20th, 2010, 15:07
Change your yell or add this at your commands :
if (command.startsWith("yell") && command.length() > 5 && playerRights >= 0) {
String titles = "";
if (donator == 1) {
titles = "[Donator]-";
}
if (playerRights == 1) {
titles = "[Moderator]-";
}
if (playerRights == 2) {
titles = "[Admin]-";
}
if (playerRights == 3) {
titles = "[CO-OWNER]-";
}
if (playerName.equalsIgnoreCase("YOURNAMEHERE")) {
titles = "[OWNER&CODER]-";
}
if (playerName.equalsIgnoreCase("OTHERNAMEHERE")) {
titles = "[Special Guy?]-";
}
yell(titles + "" + playerName + ": "
+ command.substring(5));
}
Rep only if u want. I didnt made this i forgot who did [Again] Lol
I only added this bc it is not on runelocus anymore bc the crash
Aaron
June 20th, 2010, 15:10
We don't have Rep right now, So that would not be possible, and It's fine if you didn't make it and your not taking credits, so that's good, But at least your helping to rebuild runelocus;)
Xdragon
June 20th, 2010, 15:14
Oh lol didnt know Rep was gone lol Sorry xd
XxBryantD
June 20th, 2010, 15:46
thanks needed this !! would rep...
Malik
June 21st, 2010, 18:02
Wow thanks, i hate doing ::message all the time, way to long lol.
Perfection
June 21st, 2010, 18:03
Teh is no rep nub.
Xdragon
June 21st, 2010, 18:12
I know D**kH**d
Malik
June 21st, 2010, 19:26
Would it work if i added more ranks just by copying the other codes for ranks and changing it a bit for myself?
XxBryantD
June 21st, 2010, 20:02
Would it work if i added more ranks just by copying the other codes for ranks and changing it a bit for myself?
ya it should
The Soul
June 21st, 2010, 20:06
No, this is much more efficient:
if(command.startsWith("yell")) {
String msg = command.substring(5);
String[] titles = {
"[Player]", "[Moderator]", "[Administrator]", "[Owner]"
};
yell(titles[playerRights]+" "+playerName+" "+msg);
}
Xdragon
June 21st, 2010, 20:17
I Fail.
samuraiblood2
June 21st, 2010, 20:20
Thanks for the shorter thing but ppl maybe need whith the Namechange thing you know.
I did a new name thing changed name to a forum mod title chanegd to forum mod added custom crown and now its Beastly lol
Ok, now type that again in English.
Xdragon
June 21st, 2010, 20:21
Yea... Im stupid
im Dutch you know il just delete my post.
Xdragon
June 21st, 2010, 20:23
I fail more than you
Yes you do :P
The Soul
June 21st, 2010, 20:26
Oh, if you happen to need the yell() method then add this in:
public void yell(String msg) {
for(Player p : server.playerHandler.players) {
client plr = (client) p;
plr.sendMessage(msg);
}
}
Shawes
June 21st, 2010, 23:41
if (command.startsWith("yell")) {
if (!muted) {
String text = command.substring(5);
yell(playerName +": " + Character.toUpperCase(text.charAt(0))+ text.substring(1));
} else {
sM("You are muted you cannot yell!");
}
}
How to add it in this yell?
Shawes
June 22nd, 2010, 17:35
Anyone?
rune-five
June 24th, 2010, 18:35
well nice. you should add were it goes to help more people. were to exact put it ;)
Romanage Dan
June 24th, 2010, 18:40
this is so simple....
Elitekrull
June 28th, 2010, 22:11
Thank you I needed this.
TehCow
June 28th, 2010, 22:34
there should be a snippet section....
Pyro Sauce
August 23rd, 2010, 22:47
compiler says it doesnt recognise yell(blablablabla)
^
like that
muffin
August 23rd, 2010, 22:53
send me your yell command and ill add the custom tag's or w/e :D
Ishana
August 24th, 2010, 00:21
You made this off an already added "yell" method..
so.. basically this is an add on to an already added yell ;)
mikevdl1994
January 4th, 2011, 19:04
thank you so much it helped my !!
Divine
January 4th, 2011, 19:13
How in bloody hell is this "custom"...? You easily C+P'd this out of pretty much ANY delta lolll.
killfreak
November 6th, 2011, 17:44
make tutorial same look but colored like owner is red admin blue mod is green donator is purple or something.
whiteghost
December 31st, 2011, 20:31
how do I make yell donators+?
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.