Jump to content

SanZoR

Members
  • Posts

    744
  • Joined

  • Last visited

Everything posted by SanZoR

  1. SanZoR

    Help, Can u fix

    So you ask help, cause you are busy? omfg.
  2. 0h, see also this: on *:SIGNAL:mta.connect:{ mta.text $1 Trace script connected! }
  3. I have edited your to make this. But im 100% this is better than yours. Not in scripting, but in trace yes.
  4. Yeah i like it =) I add it to my [FIN&EE] Deathmatch server. I also hope you will make more maps like this Upload em to http://www.fin-mta.net if possible Good luck!
  5. LAN server list would be good idea too Nothing else to say, i think you understand
  6. alias get.id { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 }
  7. This is new version of my old trace script, and this one works better than old one So update your current trace script to this. on *:SIGNAL:mta.command:{ var %a = $iif((!$4),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !lookup) || ($3 == !trace) || ($3 == !location) || ($3 == !tr) { dns.lookup $1 %a } alias dns.lookup { set %dns.lookup $1 $2 if (!$sock(dns.lookup $+ $mta.ip($1,$2))) sockopen dns.lookup $+ $mta.ip($1,$2) dnsstuff.sytes.net 80 } on *:SOCKOPEN:dns.lookup*:{ tokenize 32 %dns.lookup if ($sockerr > 0) { sockclose $sockname mta.text $1 Location: An error has occured. } else { sockwrite -n $sockname GET /tools/whois.ch?&ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: dnsstuff.sytes.net sockwrite $sockname $crlf } } on *:SOCKCLOSE:dns.lookup*:{ unset %tr.* } on *:SOCKREAD:dns.lookup*:{ var %t sockread %t if (Location isin %t) { tokenize 32 %dns.lookup mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,58) } } on *:SIGNAL:mta.connect:{ mta.text $1 Trace script connected! } Works on PRS and GUS. Have fun!
  8. And please, stop arguing with me. Addcon scripts is HouseMD's and trace & buy freeze are mine!
  9. Oh rly? Type !addcommand $calc(mta.fuckyou) and its crashed, you fool!
  10. I suggest you dont use this scripts. Its buggy as hell, and my scripts got crashed cause of this.
  11. on *:SIGNAL:mta.command:{ var %a = $iif((!$4),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !lookup) || ($3 == !trace) || ($3 == !location) || ($3 == !tr) { dns.lookup $1 %a } alias dns.lookup { set %dns.lookup $1 $2 if (!$sock(dns.lookup $+ $mta.ip($1,$2))) sockopen dns.lookup $+ $mta.ip($1,$2) dnsstuff.sytes.net 80 } on *:SOCKOPEN:dns.lookup*:{ tokenize 32 %dns.lookup if ($sockerr > 0) { sockclose $sockname mta.text $1 Location: An error has occured. } else { sockwrite -n $sockname GET /tools/whois.ch?&ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: dnsstuff.sytes.net sockwrite $sockname $crlf } } on *:SOCKCLOSE:dns.lookup*:{ unset %tr.* } on *:SOCKREAD:dns.lookup*:{ var %t sockread %t if (Location isin %t) { tokenize 32 %dns.lookup mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,58) } } on *:SIGNAL:mta.connect:{ mta.text $1 Trace script connected! } This1 should works Btw, this is updated version of my old trace script. So that other script wont works as well as this one.
  12. on *:SIGNAL:mta.command: { if ($3 == !buy) && ($4 == freeze) { var %a = $iif((!$5),$2,$iif(($prs.getid($1,$5) == $null),$2,$v1)) var %price = 500 var %time = 5 if (%a == $null) mta.pm $1 $2 Error! Type !buy freeze <name> elseif ($pgs.cash($1,$2) < %price) mta.pm $1 $2 Not Enough Money, Price Is %price $+ ! elseif (%a == $2) mta.pm $1 $2 Error! - You cannot buy freeze for yourself! else { mta.text $1 /me $mta.nick($1,$2) has bought freeze for $mta.nick($1,%a) for %time seconds! $calc($pgs.cash($1,$2) - %price) mta.freeze $1 %a !.timer 1 %time mta.unfreeze $1 %a !.timer 1 %time mta.text $1 /me $mta.nick($1,%a) has just unfreezed! } } now just edit %time var
  13. Mmm, and trace here: on *:SIGNAL:mta.command:{ var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)) if ($3 == !lookup) || ($3 == !trace) || ($3 == !location) || ($3 == !tr) { dns.lookup $1 %a } alias dns.lookup { set %dns.lookup $1 $2 if (!$sock(dns.lookup $+ $mta.ip($1,$2))) sockopen dns.lookup $+ $mta.ip($1,$2) dnsstuff.sytes.net 80 } on *:SOCKOPEN:dns.lookup*:{ tokenize 32 %dns.lookup if ($sockerr > 0) { sockclose $sockname mta.text $1 Location: An error has occured. } else { sockwrite -n $sockname GET /tools/whois.ch?&ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: dnsstuff.sytes.net sockwrite $sockname $crlf } } on *:SOCKCLOSE:dns.lookup*:{ unset %tr.* } on *:SOCKREAD:dns.lookup*:{ var %t sockread %t if (Location isin %t) { tokenize 32 %dns.lookup mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,58) } } on *:SIGNAL:mta.connect:{ mta.text $1 !trace script connected! =) } Tested one, i use it in my server.
  14. on *:SIGNAL:mta.command: { if ($3 == !buy) && ($4 == freeze) { var %a = $iif((!$5),$2,$iif(($prs.getid($1,$5) == $null),$2,$v1)) var %price = 500 if (%a == $null) mta.pm $1 $2 Error! Type !buy freeze <name> elseif ($pgs.cash($1,$2) < %price) mta.pm $1 $2 Not Enough Money, Price Is %price $+ ! elseif (%a == $2) mta.pm $1 $2 Error! - You cannot buy freeze for yourself! else { mta.text $1 /me $mta.nick($1,$2) has bought freeze for $mta.nick($1,%a) for 5 seconds! $calc($pgs.cash($1,$2) - %price) mta.freeze $1 %a !.timer 1 5 mta.unfreeze $1 %a !.timer 1 5 mta.text $1 /me $mta.nick($1,%a) has just unfreezed! } } Feel free to edit price: "var %price = 500" edit "500" To any amount you want to set price to be! PS. Not tested, i have just done it, but im 99% sure it will works just fine
  15. Hello, I need help with new style admin system. I write here what kinda it should be: 1. Everytime when you join (if you're an admin) you need to type !login (30s time until kick) 2. When admin have typed it, the script will generate a new password (3 numbers) and pm that password for admin. So in everytime admin have logged in, he/she get a new password to log in. Quite simple, eh... I have tried this many times, but never get it woriking. So now im asking for help! If someone can do it, i would be really happy! Really much thanks in advange! Greetings, San^,^u!
  16. Mm, im still on my GUS modification But i think the problem was money system for DD map winner. But i couldnt fix it myself, so i put my DM script here, if someone can fix or help me with it. Here it goes: alias mta.end { if (%cplayers == 1) { if ($readini(rs.ini,rs,$replace($mta.race($1),$chr(32),-)) == off) { var %a = 0,%b = 0 while (%a <= $mta.server($1).cmax) { if ($readini(alive&dead.ini,INFO,%a == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.nick($1,%a) is winner, and gets one more win and 10$ money! !writeini alive&dead.ini INFO %a DEAD !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) + 10) !writeini -n wins.ini WINS $mta.nick($1,%a) $calc($readini(wins.ini,WINS,$mta.nick($1,%a)) + 1) !halt } } !inc %a } } } } on *:SIGNAL:mta.startrace: { var %aa = 0 set %cplayers $mta.server($1).players while (%aa <= $mta.server($1).cmax) { !writeini alive&dead.ini INFO %aa Alive !inc %aa } on *:SIGNAL:mta.endrace: { var %a = 0 !.remove alive&dead.ini !writeini -n bets.ini INFO timer down while (%a <= $mta.server($1).cmax) { !remini -n bets.ini %a betted !remini -n bets.ini %a bet !remini -n bets.ini %a money !inc %a } } on *:SIGNAL:mta.part: { var %a = 0 if ($readini(alive&dead.ini,INFO,$2 == Alive)) set %cplayers $calc(%cplayers - 1) !writeini alive&dead.ini INFO $2 DEAD mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) !writeini alive&dead.ini INFO $2 DEAD mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !players) mta.text $1 Players Alive: %cplayers $+ , Total Players: $mta.server($1).players if ($3 == !gamestat* iswm) { var %b = 0 while (%b <= $mta.server($1).cmax) { if ($mta.nick($1,%b) != $null) { mta.pm $1 $2 %b - $mta.nick($1,%b) Status: $iif($readini(alive&dead.ini,INFO, %b) == Dead, Dead, Alive) } !inc %b } } } on *:SIGNAL:mta.join: { !.timer 2 0 !writeini Alive&Dead.ini INFO $2 dead } All helps/fixed are welcome! Thanks in advance!
  17. Hey, Do anybody know how to fix "slow scripts" problem? I have tried these stuff below: ----- 1. Clearing all .ini's 2. Reloading scripts very often. 3. Reconnecting MTA:mA very often. 4. Closing mIRC for few minutes, and load scripts again (Yes, this worked, but only for few minuts!) ----- What i should do? I run my scripts with very good computer, so computer specs are not a problem... Please help me with this! PS. Scripts are online 24/7
  18. What is differents between this & old one?! I think there was more stuff in old forums. Like how much data you have posted, now only how many post you have submitted! And where is stickies? OH CRAP!!!
  19. These new forums really sucks! They really pissed me up! Please, set up old forums back, or i will stop using these. If you think so too, please vote this poll!
  20. You fool, you dont need to make new topic for it. Use topic what is made for it.
×
×
  • Create New...