Jump to content

MB|Lagzilla

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by MB|Lagzilla

  1. Ah Crap. So I need a player thats in the server......all makes it very pointless then I don't much fancy having a bot in my server all the time.
  2. I have partly created a admin script which works over pm. As it works there must be a player named AdminBot or something similar to PM. I wondered if there was anyway I could PM remoteadmin or anything else so I didnt' require a player to be there to pm?
  3. MB|Lagzilla

    Swear filter.

    By IP I think? ;---------------------------------------------------- ;---------------------------------------------------- ;--------MB|Lagzilla's Permenant Mute Script--------- ;---------------------------------------------------- ;---------------------------------------------------- alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.ip($1,$2)),$v1,No) alias lag.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.join: { if ($lag.pmute($1,$2) == Yes) { mta.mute $1 $2 mta.pm $1 $2 You have been permenantly muted! } } on *:SIGNAL:mta.connect:{ mta.text $1 Permenant Mute Script By: MB|Lagzilla Connected! } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) if ($3 == !pmute) { if ($mta.level($1,$2) >= 4) { if ($mta.ip($1,%a) != $mta.ip($1,$2)) { if ($lag.pmute($1,%a) != Yes) { !writeini -n lag.pmute.ini PMUTE $mta.ip($1,%a) Yes mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) mta.mute $1 %a } else mta.pm $1 $2 $mta.nick($1,%a) is all ready permenantly muted! } else mta.pm $1 $2 You cannot permenantly mute yourself! } else mta.pm $1 $2 Insufficient Admin level! } elseif ($3 == !unpmute) { if ($mta.level($1,$2) >= 4) { if ($mta.ip($1,%a) != $mta.ip($1,$2)) { if ($lag.pmute($1,%a) != No) { !writeini -n lag.pmute.ini PMUTE $mta.ip($1,%a) No mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) mta.unmute $1 %a } else mta.pm $1 $2 $mta.nick($1,%a) is not permenantly muted! } else mta.pm $1 $2 You cannot use this command on yourself! } else mta.pm $1 $2 Insufficient Admin level! } }
  4. MB|Lagzilla

    Swear filter.

    Added a few checks and on nick change singal.....also sorted a few error's, but hey it's my first script! ;---------------------------------------------------- ;---------------------------------------------------- ;--------MB|Lagzilla's Permenant Mute Script--------- ;---------------------------------------------------- ;---------------------------------------------------- alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.nick($1,$2)),$v1,No) alias lag.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.join: { if ($lag.pmute($1,$2) == Yes) { mta.mute $1 $2 mta.pm $1 $2 You have been permenantly muted! } } on *:SIGNAL:mta.nick: { if ($lag.pmute($1,$2) == Yes) { mta.mute $1 $2 mta.pm $1 $2 You have been permenantly muted! } } on *:SIGNAL:mta.connect:{ mta.text $1 Permenant Mute Script By: MB|Lagzilla Connected! } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) if ($3 == !pmute) { if ($mta.level($1,$2) >= 1) { if ($mta.nick($1,%a) != $mta.nick($1,$2)) { if ($lag.pmute($1,%a) != Yes) { !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) Yes mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) mta.mute $1 %a } else mta.pm $1 $2 $mta.nick($1,%a) is all ready permenantly muted! } else mta.pm $1 $2 You cannot permenantly mute yourself! } else mta.pm $1 $2 Insufficient Admin level! } elseif ($3 == !unpmute) { if ($mta.level($1,$2) >= 1) { if ($mta.nick($1,%a) != $mta.nick($1,$2)) { if ($lag.pmute($1,%a) != No) { !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) No mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) mta.unmute $1 %a } else mta.pm $1 $2 $mta.nick($1,%a) is not permenantly muted! } else mta.pm $1 $2 You cannot use this command on yourself! } else mta.pm $1 $2 Insufficient Admin level! } }
  5. MB|Lagzilla

    Swear filter.

    ;---------------------------------------------------- ;---------------------------------------------------- ;--------MB|Lagzilla's Permenant Mute Script--------- ;---------------------------------------------------- ;---------------------------------------------------- alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.nick($1,$2)),$v1,No) alias lag.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.join: { if ($lag.pmute($1,$2) == Yes) { mta.mute $1 $2 mta.pm $1 $2 You have been permenantly muted! } } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) if ($3 == !pmute) { if ($mta.level($1,$2) >= 1) { !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) Yes mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) } else mta.pm $1 $2 Insufficient Admin level! } elseif ($3 == !unpmute) { if ($mta.level($1,$2) >= 1) { !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) No mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) } else mta.pm $1 $2 Insufficient Admin level! } }
  6. I worked that out after a bit. Thanks for your help.
  7. Erm that would work and is exactly what you want, the $+ is a function seperator I think? I know what it does but not what it's called.
  8. Here's my attempt, dosen't ever seem to fail ..... only made up of a mixture of all yours and some extra lil' bits! alias gus.end { var %a = 0 if ($readini(gus.players.ini,PLAYERS,SERVER $+ $1) == 1) { while (%a <= $mta.server($1).cmax) { if ($readini(gus.players.ini,DOA,%a $+ $1) == Alive) { if ($mta.nick($1,%a) != $null) { mta.text $1 The Winner of $mta.race($1) is $mta.nick($1,%a) $+ ! !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 !halt } } !inc %a } } } alias gus.start { var %c = 0 !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 while (%c <= $mta.server($1).cmax) { if ($mta.nick($1,%c) != $null) { !writeini -n gus.players.ini DOA %c $+ $1 ALIVE !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) + 1) } !inc %c } } on *:SIGNAL:mta.startrace: { gus.start $1 } on *:SIGNAL:mta.part: { if ($readini(gus.players.ini,DOA,$2 $+ $1) == ALIVE) { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) - 1) } !writeini -n gus.players.ini DOA $2 $+ $1 DEAD gus.end $1 $2 } on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) != $null) { !writeini -n gus.players.ini DOA %c $+ $1 DEAD } } on *:SIGNAL:mta.death: { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) - 1) !writeini -n gus.players.ini DOA $2 $+ $1 DEAD gus.end $1 $2 } on *:SIGNAL:mta.connect: { var %b = 0 !remove gus.players.ini !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 while (%b <= $mta.server($1).cmax) { if ($mta.nick($1,%b) != $null) { if ($mta.dead($1,%b) != $null) { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) + 1) !writeini -n gus.players.ini DOA %b $+ $1 ALIVE } } !inc %b } } on *:SIGNAL:mta.disconnect: { !remove gus.players.ini }
  9. [sLR]Racer your script seems to crash MTA:Ma and mIRC.....
  10. At the start of a new race MTA:Ma Crashes ... Thanks though this is most probably a problem with something I have, seems it's exactly what I want
  11. Yes and the last one alive will be nick = 1.... var %a = 0,%b,%c,%d while (%a <= $ini(gus.commands.ini,COMMANDS,0)) { if ($gus.level($1,$2) >= $gus.cmdlevel($ini(gus.commands.ini,COMMANDS,%a))) { if (!%b) %b = $ini(gus.commands.ini,COMMANDS,%a) elseif ($len(%b) <= 200) %b = %b $+ , $ini(gus.commands.ini,COMMANDS,%a) elseif (!%c) %c = $ini(gus.commands.ini,COMMANDS,%a) elseif ($len(%c) <= 200) %c = %c $+ , $ini(gus.commands.ini,COMMANDS,%a) elseif (!%d) %d = $ini(gus.commands.ini,COMMANDS,%a) elseif ($len(%d) <= 200) %d = %d $+ , $ini(gus.commands.ini,COMMANDS,%a) } !inc %a } if (%b) { gus.pm $1 $2 Current Level $gus.level($1,$2) Commands gus.pm $1 $2 %b if (%c) .timer 1 2 gus.pm $1 $2 %c if (%d) .timer 1 4 gus.pm $1 $2 %d } I think it would be possible to edit that to do the job?
  12. Thanks but I'm not so sure about it... When all the players spawn there nick = 1 is added into the ini as they die it's change to there nick = 0 so as the 2nd to last player die's I want it to find the one that = 1 and display it.. not a clue how to do this bit..
  13. I'm having a crazy idea attempt at a more reliable wins script for gus...
  14. Would I be correct in saying it would need to be a loop?
  15. Hmm /writeini: insufficient parameters (line 8, Name Get All.mrc)
  16. Crazy scheme Give an example of how to do it to an ini please?
  17. On map start I want to write every player in the servers nick to a ini is this possible?
  18. I have found the on *:SIGNAL:mta.finish siganl to be of no use at all, the other one's you have are wrong.. This is a small script I partly made it is based on a script made by Sanzor...it's not very accurate but it's the best I've manged. If anyone could help with it and make it more accurate that'd be great. ;--------------------- ;-PLAYERCOUNT ALIAS'S- ;--------------------- alias gus.doa !return $iif($readini(gus.doa.ini,DOA,DOA $+ $1),$v1,0) alias gus.end { if ($gus.doa($1) == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 The Winner is: $mta.nick($1,%a) !writeini -n gus.stats.ini WINS $gus.nick($1,%a) $calc($gus.wins($1,%a) + 1) !halt } !inc %a } } } ;--------------------- ;-------SIGNAL'S------ ;--------------------- on *:SIGNAL:mta.connect:{ !writeini -n gus.doa.ini DOA DOA $+ 1 0 } on *:SIGNAL:mta.part: { if ($mta.dead($1,$2) != $null) !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 } on *:SIGNAL:mta.startrace: { !writeini -n gus.doa.ini DOA DOA $+ $1 $mta.server($1).players } on *:SIGNAL:mta.death: { !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 }
  19. I can stunt in the rest of SA and in a lot of diffrent ways, stunting on Wankenstein Maps is just a lot harder and more challenging.
  20. MB|Lagzilla

    Your MTA History!

    Allways been "Lagzilla" with various extentions like [GB] Great Britan, [uK] United Kingdom, [Eng] England and now MB|Lagzilla. MB Being the only clan I ever will be in. Been Admin for: - 100% Wankenstein Level 10 - thestrangesticks Server Level 5 - MB Wankenstein Server Level 5 - MB Stunt Server Level 5 Out of them thestrangesticks server is gone and 100% Wankenstein has put me back to level 9 I think, for no apparent reason. Also I've only ever played race..........
  21. Here are my video's from Wankenstein DD, 1st video is fairly basic 2nd one has some cool stuff in it. Sorry about the quality it is a bit dodgey. Part 1 Part 2 Included in both parts should be pretty much every trick in the Wankenstein DD map.
  22. Ok this is what I got: ;--------------------- ;-PLAYERCOUNT ALIAS'S- ;--------------------- alias gus.doa !return $iif($readini(gus.doa.ini,DOA,DOA $+ $1),$v1,0) alias gus.end { if ($gus.doa($1) == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 The Winner is: $mta.nick($1,%a) !writeini -n gus.stats.ini WINS $gus.nick($1,%a) $calc($gus.wins($1,%a) + 1) !halt } !inc %a } } } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2)) !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 } on *:SIGNAL:mta.startrace: { !writeini -n gus.doa.ini DOA DOA $+ $1 $mta.server($1).players } on *:SIGNAL:mta.death: { !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 } May or may not be error's, I'm learning..
×
×
  • Create New...