| Mirage Source http://web.miragesource.net/forums/ |
|
| Killall and Mute. http://web.miragesource.net/forums/viewtopic.php?f=201&t=4334 |
Page 1 of 1 |
| Author: | Nean [ Tue Sep 16, 2008 4:25 am ] |
| Post subject: | Killall and Mute. |
So these are the two last commands I've been working on. I've been trying to make a killall command, with the /kill command. I was thinking that'd it go like: Code: For I=1 to MAX_PLAYERS or something like that. Am I on the right track?Kill(i) And with the mute command. I don't know, I guess I could just add a check to see if the char is muted, right? And if he is, than make it exit the sub on all the different chat types, when it sees they are muted... Right? |
|
| Author: | DarkC [ Tue Sep 16, 2008 4:28 am ] |
| Post subject: | Re: Killall and Mute. |
Here is a mute tutorial. You can just edit that to fit MS4 or whatever your using... http://web.miragesource.com/old-tutoria ... layer.html And I think your on the right track. |
|
| Author: | William [ Tue Sep 16, 2008 7:29 am ] |
| Post subject: | Re: Killall and Mute. |
Your on the right way as long as there is a Kill sub. If not you need to create a death sequence. Where the player drops item/or not, looses exp/or not. Etc.. |
|
| Author: | Nean [ Wed Sep 17, 2008 3:25 pm ] |
| Post subject: | Re: Killall and Mute. |
DarkC wrote: Here is a mute tutorial. You can just edit that to fit MS4 or whatever your using... http://web.miragesource.com/old-tutoria ... layer.html And I think your on the right track. I followed that, and edited it so that I thought it would work with MS4, but I get this compile error: Code: Method or Data member not found. and it highlights: .muteI think editing this code, is my best bet, as I'm not good enough to write one from scratch. T_T |
|
| Author: | Rian [ Wed Sep 17, 2008 4:04 pm ] |
| Post subject: | Re: Killall and Mute. |
Did you add Mute to the PlayerRec? |
|
| Author: | Nean [ Wed Sep 17, 2008 4:44 pm ] |
| Post subject: | Re: Killall and Mute. |
Sonire wrote: Did you add Mute to the PlayerRec? I did, on the server side of things, I believe. Mute As Boolean Should I add it to both the Client, and Server? |
|
| Author: | Rian [ Wed Sep 17, 2008 4:51 pm ] |
| Post subject: | Re: Killall and Mute. |
Well yeah, if you have something client side that requires .Mute, then add it to the player rec. If the error is server side, then I'm not too sure. I haven't really delved into MSE4 yet. |
|
| Author: | Nean [ Wed Sep 17, 2008 5:00 pm ] |
| Post subject: | Re: Killall and Mute. |
Still does it, when I added both to playerrec. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|