| fight advertisment command. | |
|
|
Author | Message |
---|
angelife Global Administrator
DD Posts : 173 Join date : 2009-08-06 Age : 29 Location : farmington CT
| Subject: fight advertisment command. Sun Aug 09, 2009 1:38 pm | |
| ok well since alott of peoples pk(mostly all of serv) i thought i might as well give out this command.all you have to do is type ::fight. and it does a shout over server saying "playername is looking for a fight at edge!" or whatever. this is the one with a timer(10 seconds): - Code:
-
} if (command.startsWith("fight")) { checkmutedusers(); String text = command.substring(5); if (muted == 1) { sM("You are muted and cannot advertise a fight!"); } else if (fightTimer > 0 && playerRights == 0){ sM(You can only advertise a fight once every 10 seconds!"); } else { PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk!" + text; fightTimer = 10; } and this is the one without a timer: - Code:
-
}if (command.startsWith("fight")) { checkmutedusers(); String text = command.substring(5); if (muted == 1) { sM("You are muted and cannot advertise a fight!"); } else { PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk " + text; }
=] if u add it backup ur files like a good coder incase u get an error (it's possible if ur muteduser method isnt called "checkmutedusers();" -owlfanatic77
Last edited by owlfanatic77 on Wed Aug 26, 2009 9:15 am; edited 1 time in total | |
|
| |
shawn Haxor IRL
DD Posts : 214 Join date : 2009-08-01 Age : 58 Location : Washington State
| Subject: Re: fight advertisment command. Sun Aug 09, 2009 3:41 pm | |
| Thanks man you have been helping the server out alot. | |
|
| |
angelife Global Administrator
DD Posts : 173 Join date : 2009-08-06 Age : 29 Location : farmington CT
| Subject: Re: fight advertisment command. Sun Aug 09, 2009 3:44 pm | |
| only with codes . i dont even know if they are using them. either way i'll still add some more codes . maybe figure out how to make a webclient ( i got the all clear from arti ) so yah thanks shawn. u've always been a positive poster 2 me =] | |
|
| |
fantom Haxor IRL
DD Posts : 282 Join date : 2009-07-27 Age : 29 Location : south dakota, usa
| Subject: Re: fight advertisment command. Sun Aug 09, 2009 6:40 pm | |
| i vote u as admin ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ but i think there is wc just u cant c customs | |
|
| |
angelife Global Administrator
DD Posts : 173 Join date : 2009-08-06 Age : 29 Location : farmington CT
| Subject: Re: fight advertisment command. Sun Aug 09, 2009 7:26 pm | |
| lol thanks fantom. hell who knows maybe i might get admin someday. im suprised no one reps+ me for this stuff >.> | |
|
| |
im real pb Senior Member
DD Posts : 110 Join date : 2009-07-29
| Subject: Re: fight advertisment command. Wed Aug 12, 2009 10:17 am | |
| | |
|
| |
bllc! Haxor IRL
DD Posts : 235 Join date : 2009-08-12
| Subject: Re: fight advertisment command. Sat Aug 15, 2009 6:25 pm | |
| wow nice coding | |
|
| |
pker for ev Global Moderator
DD Posts : 365 Join date : 2009-07-21 Age : 29 Location : Hood River OR
| Subject: Re: fight advertisment command. Sat Aug 15, 2009 11:10 pm | |
| damn dude you keep coding and your gonna get co owner!! lol keep it up! | |
|
| |
Guest Guest
| Subject: Re: fight advertisment command. Tue Aug 25, 2009 10:56 pm | |
| - owlfanatic77 wrote:
- ok well since alott of peoples pk(mostly all of serv) i thought i might as well give out this command.all you have to do is type ::fight. and it does a shout over server saying "playername is looking for a fight at edge!" or whatever.
this is the one with a timer(10 seconds):
- Code:
-
} else if (command.startsWith("fight")) { checkmutedusers(); String text = command.substring(5); if (muted == 1) { sendMessage("You are muted and cannot advertise a fight!"); } else if (fightTimer > 0 && playerRights == 0){ sendMessage("You can only advertise a fight once every 10 seconds!"); } else { PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk!" + text; fightTimer = 10; }
and this is the one without a timer: - Code:
-
} else if (command.startsWith("fight")) { checkmutedusers(); String text = command.substring(5); if (muted == 1) { sendMessage("You are muted and cannot advertise a fight!"); } else { PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk " + text; }
=] if u add it backup ur files like a good coder incase u get an error (it's possible if ur muteduser method isnt called "checkmutedusers();"
-owlfanatic77 ahahaha thats verybasic but dood job for once better then others |
|
| |
angelife Global Administrator
DD Posts : 173 Join date : 2009-08-06 Age : 29 Location : farmington CT
| Subject: Re: fight advertisment command. Wed Aug 26, 2009 8:50 am | |
| - Quote :
- its very basic.
i know its basic. i just wanted to do that cuz allota pplz waste their time doing ::shout "fighting blah blah blah" | |
|
| |
Sponsored content
| Subject: Re: fight advertisment command. | |
| |
|
| |
| fight advertisment command. | |
|