Jump to content

HouseMD

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by HouseMD

  1. alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } alias end.vote { var %players = $round($calc($mta.server($1).players * $iif(%votetype == votekick,%vkp,%vbp) ),0) if ($calc(%yes - %no) >= %players) { mta.text $1 %votetype successful for $mta.nick($1,%id) Yes: %yes No: %no $iif(%votetype == votekick,mta.kick $1 %id,$iif(%votetype == voteban,mta.ban $1 %id)) unset %id unset %ids unset %running unset %votetype unset %yes unset %no } else { mta.text $1 %votetype unsuccessful for $mta.nick($1,%id) Yes: %yes No: %no unset %id unset %ids unset %running unset %votetype unset %yes unset %no } } on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !votekick) { if (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%running == yes) mta.pm $1 $2 A %VoteType is already running else { if (%votetime == $null) set %votetime 30 if (%vkp == $null) set %vkp 0.5 mta.text $1 A VoteKick has been issued on " $+ $mta.nick($1,%a) $+ " mta.text $1 $round($calc($mta.server($1).players * %vkp),0) Votes needed, !Yes and !No ( $+ %votetime Seconds) set %running yes set %votetype VoteKick set %id %a set %no 0 set %yes 0 .timervote 1 %votetime end.vote $1- } } elseif ($3 == !voteban) { if (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%running == yes) mta.pm $1 $2 A %VoteType is already running else { if (%votetime == $null) set %votetime 30 if (%vbp == $null) set %vbp 0.8 mta.text $1 A Voteban has been issued on " $+ $mta.nick($1,%a) $+ " mta.text $1 $round($calc($mta.server($1).players * %vbp),0) Votes needed, !Yes and !No ( $+ %votetime Seconds) set %running yes set %votetype Voteban set %id %a set %no 0 set %yes 0 .timervote 1 %votetime end.vote $1- } } elseif ($3 == !no) { if ($2 isin %IDs) mta.pm $1 $2 You have already voted on a %votetype elseif (%running == $null) mta.pm $1 $2 There is no vote running! else { if (!%ids) set %ids $2 else set %ids %ids $2 set %no $calc(%no + 1) mta.pm $1 $2 You have voted no for a %votetype against $mta.nick($1,%id) } } elseif ($3 == !yes) { if ($2 isin %IDs) mta.pm $1 $2 You have already voted on a %votetype elseif (%running == $null) mta.pm $1 $2 There is no vote running! else { if (!%ids) set %ids $2 else set %ids %ids $2 set %yes $calc(%yes + 1) mta.pm $1 $2 You have voted yes for a %votetype against $mta.nick($1,%id) } } elseif ($3 == !vote) { if (%running == $null) mta.pm $1 $2 There is no Vote Running! else { var %players = $round($calc($mta.server($1).players * $iif(%votetype == votekick,%vkp,%vbp) ),0) mta.text $1 There is a %votetype running against $mta.nick($1,%id) $+ , $iif($calc(%yes - %no - %players) >= 0,No Votes needed,$abs($calc(%yes - %no - %players)) votes needed) ( $+ $timer(vote).secs seconds left!) } } elseif ($3 == !setpercentvk) { if ($gus.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! elseif ($4 !isnum) mta.pm $1 $2 You need a number as percentage elseif (!$4) mta.pm $1 $2 Error: $3 elseif ($4 == $calc(%vkp * 100)) mta.pm $1 $2 The percentage is already set to the value you specified! else { mta.text $1 Percentage of Votekick set from $calc(%vkp * 100) $+ % to $4 $+ % set %vkp $calc($4 / 100) } } elseif ($3 == !setpercentvb) { if ($gus.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! elseif ($4 !isnum) mta.pm $1 $2 You need a number as percentage elseif (!$4) mta.pm $1 $2 Error: $3 elseif ($4 == $calc(%vkb * 100)) mta.pm $1 $2 The percentage is already set to the value you specified! else { mta.text $1 Percentage of Voteban set from $calc(%vbp * 100) $+ % to $4 $+ % set %vbp $calc($4 / 100) } } elseif ($3 == !setvotetime) { if (!$4) Error: $3 elseif ($4 !isnum) mta.pm $1 $2 The time must be in seconds elseif (%votetime == $4) mta.pm $1 $2 The time of the vote is set to the same value you specified! elseif ($gus.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! else { mta.text $1 The time of the vote is set from %votetime seconds to $4 seconds set %votetime $4 } } } on *:SIGNAL:mta.part: { if (%running == yes) { if ($2 == %id) { mta.text $1 $mta.nick($1,$2) Parted! There was a %votetype against him! .timervote off unset %id unset %ids unset %running unset %votetype unset %yes unset %no } } } - For Gus alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } alias end.vote { var %players = $round($calc($mta.server($1).players * $iif(%votetype == votekick,%vkp,%vbp) ),0) if ($calc(%yes - %no) >= %players) { mta.text $1 %votetype successful for $mta.nick($1,%id) Yes: %yes No: %no $iif(%votetype == votekick,mta.kick $1 %id,$iif(%votetype == voteban,mta.ban $1 %id)) unset %id unset %ids unset %running unset %votetype unset %yes unset %no } else { mta.text $1 %votetype unsuccessful for $mta.nick($1,%id) Yes: %yes No: %no unset %id unset %ids unset %running unset %votetype unset %yes unset %no } } on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !votekick) { if (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%running == yes) mta.pm $1 $2 A %VoteType is already running else { if (%votetime == $null) set %votetime 30 if (%vkp == $null) set %vkp 0.5 mta.text $1 A VoteKick has been issued on " $+ $mta.nick($1,%a) $+ " mta.text $1 $round($calc($mta.server($1).players * %vkp),0) Votes needed, !Yes and !No ( $+ %votetime Seconds) set %running yes set %votetype VoteKick set %id %a set %no 0 set %yes 0 .timervote 1 %votetime end.vote $1- } } elseif ($3 == !voteban) { if (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%running == yes) mta.pm $1 $2 A %VoteType is already running else { if (%votetime == $null) set %votetime 30 if (%vbp == $null) set %vbp 0.8 mta.text $1 A Voteban has been issued on " $+ $mta.nick($1,%a) $+ " mta.text $1 $round($calc($mta.server($1).players * %vbp),0) Votes needed, !Yes and !No ( $+ %votetime Seconds) set %running yes set %votetype Voteban set %id %a set %no 0 set %yes 0 .timervote 1 %votetime end.vote $1- } } elseif ($3 == !no) { if ($2 isin %IDs) mta.pm $1 $2 You have already voted on a %votetype elseif (%running == $null) mta.pm $1 $2 There is no vote running! else { if (!%ids) set %ids $2 else set %ids %ids $2 set %no $calc(%no + 1) mta.pm $1 $2 You have voted no for a %votetype against $mta.nick($1,%id) } } elseif ($3 == !yes) { if ($2 isin %IDs) mta.pm $1 $2 You have already voted on a %votetype elseif (%running == $null) mta.pm $1 $2 There is no vote running! else { if (!%ids) set %ids $2 else set %ids %ids $2 set %yes $calc(%yes + 1) mta.pm $1 $2 You have voted yes for a %votetype against $mta.nick($1,%id) } } elseif ($3 == !vote) { if (%running == $null) mta.pm $1 $2 There is no Vote Running! else { var %players = $round($calc($mta.server($1).players * $iif(%votetype == votekick,%vkp,%vbp) ),0) mta.text $1 There is a %votetype running against $mta.nick($1,%id) $+ , $iif($calc(%yes - %no - %players) >= 0,No Votes needed,$abs($calc(%yes - %no - %players)) votes needed) ( $+ $timer(vote).secs seconds left!) } } elseif ($3 == !setpercentvk) { if ($pgs.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! elseif ($4 !isnum) mta.pm $1 $2 You need a number as percentage elseif (!$4) mta.pm $1 $2 Error: $3 elseif ($4 == $calc(%vkp * 100)) mta.pm $1 $2 The percentage is already set to the value you specified! else { mta.text $1 Percentage of Votekick set from $calc(%vkp * 100) $+ % to $4 $+ % set %vkp $calc($4 / 100) } } elseif ($3 == !setpercentvb) { if ($pgs.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! elseif ($4 !isnum) mta.pm $1 $2 You need a number as percentage elseif (!$4) mta.pm $1 $2 Error: $3 elseif ($4 == $calc(%vkb * 100)) mta.pm $1 $2 The percentage is already set to the value you specified! else { mta.text $1 Percentage of Voteban set from $calc(%vbp * 100) $+ % to $4 $+ % set %vbp $calc($4 / 100) } } elseif ($3 == !setvotetime) { if (!$4) Error: $3 elseif ($4 !isnum) mta.pm $1 $2 The time must be in seconds elseif (%votetime == $4) mta.pm $1 $2 The time of the vote is set to the same value you specified! elseif ($pgs.level($1,$2) <= mta.pm $1 $2 You need to be level 9 to use this command! else { mta.text $1 The time of the vote is set from %votetime seconds to $4 seconds set %votetime $4 } } } on *:SIGNAL:mta.part: { if (%running == yes) { if ($2 == %id) { mta.text $1 $mta.nick($1,$2) Parted! There was a %votetype against him! .timervote off unset %id unset %ids unset %running unset %votetype unset %yes unset %no } } } - for PGS Long votekick? yup! Painful? Nop! This votekick has many nice stuff, like the ability to set the time of the votes and set the percentages (Vk for votekick, vb for voteban) If you would like to change the admin levels, make sure that you know that this "<=" means "Same or Lower"
  2. Nope, it works with and . Console could be accessed from the game, but only with a Rcon_login
  3. To use commands in remote admin instead of On *:signal:mta.command: use on *:SIGNAL:mta.adcon: I suggest u put all commands in a alias... and put the alias in mta.command and in mta.adcon! also make the nickname "Admin" a admin, because otherwise it won't show (it will not show on !admins, because the Admin ID is 254), u can also use it in the normal mta remote admin too.
  4. HouseMD

    setting a reply

    Yea, its not proud doing it urself, but it is for neo clan because they are so cool ppl wanna copy them...Therefore they should feel proud
  5. eh? use wine or something, im sure it will work...
  6. HouseMD

    !car script

    although u can change the car a map spawns with I can make script that can change the car, but thats kind useless
  7. HouseMD

    Ranks

    Search for ranks...
  8. HouseMD

    setting a reply

    .... Neo... ur ideas are great... thats why ppl copy you... but answer 1 question, did u use my !addcom script to make ur !setreply? besides neo, u should be proud... Since everyone wants to copy ur scripts/commands.... ^^
  9. HouseMD

    !car script

    This script is for guys who like imagining that they have a car, it would be cool if u could change a car inside game though...
  10. if 1 doesn;t work, use the other lol.
  11. Linux IRC clients are similar to MIRC...
  12. Are you trying to run MIRC from linux or something, if u are, there are things that allow u to use windows programs in linux
  13. U can use Linux IRC clients...
  14. Watti, We could just post our stuff here, and ur forum isn't even any good!
  15. /me thanks JB_frozen for the ice cold beer and drinks it with delight
  16. U must have all the maps of the server you are scripting for it to work! alias detect.rs { unset %rs var %a = 0,%place = while (%a <= $lines(%place $+ $mta.race($1) $+ .map)) { if (none isin $read(%place $+ $mta.race($1) $+ .map, %a)) set %rs $calc(%rs + 1) if (%a == 40) var %a = $lines(%place $+ $mta.race($1) $+ .map) !inc %a } if (%rs == 1) !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) Off else !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) On } on *:SIGNAL:mta.startrace: { Detect.rs $1- mta.text $1 Respawn: $readini(rs.ini,maps,$replace($mta.race($1),$chr(32),-)) } Make sure u replace where it says %place on top, with the place u where u put ur maps (Eg %place = D:\Maps\) and u must have the "\" at the end, otherwise it won't work!
  17. That script never worked for me
  18. on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } alias check.upper { if ($isupper($3-) == $true) { if ($left($3-,3) != $3-) { if ($readini(caps.ini,Caps,$2) == $null) { mta.pm $1 $2 You forgot ur caps lock on! !writeini -n caps.ini caps $2 0 } elseif ($readini(caps.ini,caps,$2) == 0) { mta.pm $1 $2 You Forgot ur caps lock on! 1st warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 1) { mta.pm $1 $2 You Forgot ur caps lock on! 2nd warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 2) { mta.pm $1 $2 You Forgot ur caps lock on! 3rd and last warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 3) { mta.pm $1 $2 You will now be muted for 2 minutes! !remini -n caps.ini caps $2 mta.mute $1 $2 .timer 1 120 mta.unmute $1 $2 } } } } on *:SIGNAL:mta.part: { !remini -n caps.ini caps $2 }
  19. VC or SA, Because that won't work on SA, only the 4.0 does!
  20. HouseMD

    !findmap

    Just a thing I decided to make, the reason i use "Set" instead of "var" is that on my servers they rarely work, !Admins works, but nothing else for me does, so here's just a good little (being sarcastic) !findmap script on *:signal:mta.command: { if ($3 == !findmap) { var %b = 1 if (!$4) mta.pm $1 $2 Error: !Findmap else { while (%b <= $lines($1.ini)) { if ($4- isin $readini($1.ini,races,%b)) { if (!%c) set %c $readini($1.ini,races,%b)) elseif ($numtok(%c,32) <= 10) set %c %c $+ , $readini($1.ini,races,%b)) elseif (!%d) set %d $readini($1.ini,races,%b)) elseif ($numtok(%d,32) <= 10) set %d %d $+ , $readini($1.ini,races,%b)) elseif (!%e) set %e $readini($1.ini,races,%b)) elseif ($numtok(%e,32) <= 10) set %e %e $+ , $readini($1.ini,races,%b)) elseif (!%f) set %f $readini($1.ini,races,%b)) elseif ($numtok(%f,32) <= 10) set %f %f $+ , $readini($1.ini,races,%b)) elseif (!%g) set %g $readini($1.ini,races,%b)) elseif ($numtok(%g,32) <= 10) set %g %g $+ , $readini($1.ini,races,%b)) elseif (!%h) set %h $readini($1.ini,races,%b)) elseif ($numtok(%h,32) <= 10) set %h %h $+ , $readini($1.ini,races,%b)) elseif (!%i) set %i $readini($1.ini,races,%b)) elseif ($numtok(%i,32) <= 10) set %i %i $+ , $readini($1.ini,races,%b)) elseif (!%j) set %j $readini($1.ini,races,%b)) elseif ($numtok(%j,32) <= 10) set %j %j $+ , $readini($1.ini,races,%b)) elseif (!%k) set %k $readini($1.ini,races,%b)) elseif ($numtok(%k,32) <= 10) set %k %k $+ , $readini($1.ini,races,%b)) } !inc %b } if (!%c) mta.text $1 No maps with " $+ $4- $+ " in it found! else { mta.text $1 Matching maps: %c mta.text $1 %d mta.text $1 %e mta.text $1 %f mta.text $1 %g mta.text $1 %h mta.text $1 %i mta.text $1 %j mta.text $1 %k } unset %c unset %d unset %e unset %f unset %g unset %h unset %i unset %j unset %k } } } And yes, I could've just done $mta.races($1,%b), but i like the long way... Only i know why and i won't share it
  21. NEW AND EDITED ADDCOM SCRIPT Fixed Bugs: *Command Detection is better Extras: *!Listcom to see all your commands
  22. I call this the "SAVE ME" Trick! I call that the "Bond Flip" Trick! I'll soon make a nice video of the tricks of "Wankenstein DD"
  23. HouseMD

    uncrime command

    !uncrime command.... Remove something from a list... I'll write a !crime and !uncrime command: alias gus.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.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !crime) { var %b = 0 while (%b <= $lines(suspects.txt)) { if (%a == $read(suspects.txt, %b)) { set %detect $calc(%detect + 1) } !inc %b } if (!$4) mta.pm $1 $2 Error: You have to specify a name elseif (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%detect == 1) mta.pm $1 $2 Error: Name already on list else { mta.text $1 Suspect " $+ $mta.nick($1,%a) $+ " listed !write suspects.txt %a } } if ($3 == !uncrime) { var %b = 0 while (%b <= $lines(suspects.txt)) { if (%a == $read(suspects.txt, %b)) { set %detect $calc(%detect + 1) } !inc %b } if (!$4) mta.pm $1 $2 Error: You have to specify a name elseif (%a == -1) mta.pm $1 $2 Error: Absent ID elseif (%detect == 0) mta.pm $1 $2 Error: Name never put on list else { mta.text $1 Suspect " $+ $mta.nick($1,%a) $+ " deleted from list !write -ds $+ %a suspects.txt } } if ($3 == !listsus) || ($3 == !listsuspects) || ($3 == !listsuspect) { var %b = 0 while (%b <= $lines(suspects.txt)) { if ($mta.nick($1, $+ $read(suspects.txt, %b)) != $null) { if (!%c) set %c $mta.nick($1, $+ $read(suspects.txt, %b)) elseif ($numtok( %c,32) <= 7) set %c %c $+ , $mta.nick($1, $+ $read(suspects.txt, %b)) elseif (!%d) set %d $mta.nick($1, $+ $read(suspects.txt, %b)) elseif ($numtok( %d,32) <= 7) set %d %d $+ , $mta.nick($1, $+ $read(suspects.txt, %b)) elseif (!%e) set %e $mta.nick($1, $+ $read(suspects.txt, %b)) elseif ($numtok( %e,32) <= 7) set %e %e $+ , $mta.nick($1, $+ $read(suspects.txt, %b)) elseif (!%f) set %f $mta.nick($1, $+ $read(suspects.txt, %b)) elseif ($numtok( %f,32) <= 7) set %f %f $+ , $mta.nick($1, $+ $read(suspects.txt, %b)) elseif (!%g) set %g $mta.nick($1, $+ $read(suspects.txt, %b)) elseif ($numtok( %g,32) <= 7) set %g %g $+ , $mta.nick($1, $+ $read(suspects.txt, %b)) } !inc %b } if (!%c) mta.text $1 There are no suspects listed! else { mta.text $1 Suspects Listed: %c mta.text $1 %d mta.text $1 %e mta.text $1 %f mta.text $1 %g } unset %c unset %d unset %e unset %f unset %g } } on *:signal:mta.part: { write -ds $+ $2 suspects.txt } on *:signal:mta.death: { write -ds $+ $2 suspects.txt } on *:signal:mta.startrace: { var %b = 0 while (%b <= $mta.server($1).cmax) { !write -ds $+ %b suspects.txt } } This script should do !uncrime, !crime, !listsus/!listsuspect/!listsuspects and delete anyone on the list on death, part or startrace! You can add a "GUS" or "Rcon" ristriction by adding a "elseif ($gus.level($1,$2) <= ) / elseif($mta.level($1,$2) <= )"
  24. How to use "While" Var %a = 0 (Variable named %a is 0) while (%a <= mta.server($1).cmax) { (while %a is lower than $mta.server($1).cmax, The max amount of ppl in server, then do) mta.text $1 %a (say text %a (Say the thing that is %a)) !inc %a (Add 1 to %a, you can use !dec to lower 1) } With this, it will say 1 2 3... until the no. of max players! This way you can make it write for every player in the server and so on...
  25. HouseMD

    uncrime command

    What do you mean by !crime/!uncrime command? What is it supposed to do??
×
×
  • Create New...