-
Posts
2,318 -
Joined
-
Last visited
Posts posted by lil Toady
-
-
Public beta
We will, as usual, be holding a public beta once we (think we) have fixed everything. Again, we cannot say when this will be, but it will likely happen during a weekend or holiday and be announced a few days before starting. It will be organised via IRC, so it may be a good idea to drop by and get yourself acquainted with it.
umm wait...so the beta wont be on this site...rather on IRC? i dont use IRC...so am i not going to be in the beta? bs!
Umm.. that is not mta's news post.
-
After their public beta i'm sure.
what if there will be no public beta?

-
oh damn.. If you can not script don't try to do stuff like that. I believe you don't understand anything in the script, you just changed the url.
Well it is not gonna work with DNS Stuff anyway. mIRC trace scripts are banned there. (will i have some ideas how to get over the ban but it'd be mean to post that)
Why dont the default host i put there? It takes just a little bandwidth either. Umm, it was the first suitable host i found but if you have anything better post.
-
Hacking of any kind (including discussion of which) will get you banned

we shouldn't discuss mta here then

-
!writeini -n " $+ $scriptdir $+ bla.ini" bla bla $calc($readini(bla.ini,bla,bla) + 1)
!writeini " $+ $scriptdir $+ bla.ini" bla bla $calc($readini($scriptdir $+ bla.ini,bla,bla) + 1)
-
the countdown for mta race started only the day before release..
-
-
-
replace this votekick with my newer one!

-
i've made an 1337 function for stuff like that, mta.longsay
it will protect you from broken messages in mtaon *:SIGNAL:mta.command:{ if ($3 == !food) showfood $1- } alias showfood { var %a = 0,%b,%c if (!$ini(rpg.ini,$mta.name($1,$2),1)) mta.say $1 $mta.name($1,$2) has no food. else { while (%a <= $ini(rpg.ini,$mta.name($1,$2),0)) { %b = $ini(rpg.ini,$mta.name($1,$2),%a) if ($readini(rpg.ini,$mta.name($1,$2),%b) > 0) { if ($readini(things.ini,food,%b) == 1) { %c = $iif(%c,%c $+ $chr(44),$+(%b,$chr(40),$readini(rpg.ini,$mta.name($1,$2),%b),$chr(41)),$+(%b,$chr(40),$readini(rpg.ini,$mta.name($1,$2),%b),$chr(41))) } } !inc %a } mta.longsay $1 $mta.name($1,$2) $+ 's food: $iif(%c,$v1,None) } } alias mta.longsay { var %a = 1,%b while (%a <= $numtok($3-,32)) { if ($calc($len(%b) + $len($gettok($3-,%a,32))) <= 115) %b = $iif(%b,%b $gettok($3-,%a,32),$gettok($3-,%a,32)) else { mta.say $1 %b %b = $null } !inc %a } mta.say $1 %b } -
MTA 0.5:
if ($mta.players($1) >= 3) {}MTA:SA:
if ($mta.server($1).players >= 3) {} -
possible with scripts
-
well ok scoob, if you want it to be perfect, here you go

on *:SIGNAL:mta.command:{ var %a = $iif($iif($4,$iif($mta.nick($1,$4),$4,$mta.getid($1,$4)),$2),$v1,-1) if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ] != $null) mta.pm $1 $2 Another votekick is running: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) elseif ($mta.server($1).players < 3) mta.pm $1 $2 Error - There should be at least 3 players in the server to start a votekick. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID/Name elseif (%a == $2) mta.pm $1 $2 Error - Can't votekick yourself else { set %vote.nick. [ $+ [ $1 ] ] %a unset %vote.voters. [ $+ [ $1 ] ] mta.text $1 Votekick "!vote" if u want that $mta.nick($1,%a) should be kicked. [ $round($calc($mta.server($1).players / 2),0) votes needed] [1 minute] .timervote [ $+ [ $1 ] ] 1 60 mta.cancel.votekick $1 } } elseif ($3 == !vote) { if ((%vote.nick. [ $+ [ $1 ] ] == $null) || (%vote.nick. [ $+ [ $1 ] ] !isnum)) mta.pm $1 $2 No votekick is currently running. elseif ($findtok(%vote.voters. [ $+ [ $1 ] ],$2,1,32)) mta.pm $1 $2 $mta.nick($1,$2) $+ , You have already voted. else { set %vote.voters. [ $+ [ $1 ] ] %vote.voters. [ $+ [ $1 ] ] $2 if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $round($calc($mta.server($1).players / 2),0)) { mta.text $1 $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) Vote limit reached, $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) is out! mta.kick $1 %vote.nick. [ $+ [ $1 ] ] unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] .timervote [ $+ [ $1 ] ] off } else mta.text $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) [ $+ $calc($round($calc($mta.server($1).players / 2),0) - $numtok(%vote.voters. [ $+ [ $1 ] ],32)) more votes needed] [ $+ $timer(vote [ $+ [ $1 ] ]).secs seconds left] } } } on *:SIGNAL:mta.part:{ if ($2 = %vote.nick. [ $+ [ $1 ] ]) mta.cancel.votekick $1 } alias mta.cancel.votekick { mta.text $1 Vote kick cancelled: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] } -
yeh, that's because that player left. The script will kick a player only if 50% of players vote. So when players join/leave, the number changes
-
GRR
on *:SIGNAL:mta.command:{ var %a = $iif($iif($4,$iif($mta.nick($1,$4),$4,$mta.getid($1,$4)),$2),$v1,-1) if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ] != $null) mta.pm $1 $2 Another votekick is running: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) elseif (%a == -1) mta.pm $1 $2 Error - Absent ID/Name elseif (%a == $2) mta.pm $1 $2 Error - Can't votekick yourself else { set %vote.nick. [ $+ [ $1 ] ] %a unset %vote.voters. [ $+ [ $1 ] ] mta.text $1 Votekick "!vote" if u want that $mta.nick($1,%a) shall be kicked. [ $round($calc($mta.server($1).players / 2),0) votes needed][30 sec] .timervote [ $+ [ $1 ] ] 1 30 mta.vote $1 } } elseif ($3 == !vote) { if ((%vote.nick. [ $+ [ $1 ] ] == $null) || (%vote.nick. [ $+ [ $1 ] ] !isnum)) mta.pm $1 $2 No votekick is currently running. elseif ($2 isin %vote.voters. [ $+ [ $1 ] ]) mta.pm $1 $2 $mta.nick($1,$2) $+ , You have already voted. else { set %vote.voters. [ $+ [ $1 ] ] %vote.voters. [ $+ [ $1 ] ] $2 mta.text $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $round($calc($mta.server($1).players / 2),0)) { mta.text $1 $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes, you're out! mta.kick $1 %vote.nick. [ $+ [ $1 ] ] unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] .timervote [ $+ [ $1 ] ] off } } } } alias mta.vote { mta.text $1 Vote kick cancelled: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] } -
oh yeh, forgot to put the mta.vote alias in the last post, get it from my previous post

-
that are a bit diff scripts tho scoob, had a look at the first script and it doesn't seem to be fixing the mtama's races list, only to show the current map. The second script is supposed to retrieve the missing races in mtama maps list.
-
Well, im not scripting much for SA, only to help ppl on this forum with scripting.
It differs a bit from 0.5. But i still blame Aeron for all my mistakeson *:SIGNAL:mta.command:{ var %a = $iif($iif($4,$iif($mta.nick($1,$4),$4,$mta.getid($1,$4)),$2),$v1,-1) if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ]) mta.pm $1 $2 Another votekick is running: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) elseif (%a == -1) mta.pm $1 $2 Error - Absent ID/Name elseif (%a == $2) mta.pm $1 $2 Error - Can't votekick yourself else { set %vote.nick. [ $+ [ $1 ] ] %a unset %vote.voters. [ $+ [ $1 ] ] mta.text $1 Votekick "!vote" if u want that $mta.nick($1,%a) shall be kicked. [ $round($calc($mta.server($1).players / 2),0) votes needed][30 sec] .timervote [ $+ [ $1 ] ] 1 30 mta.vote $1 } } elseif ($3 == !vote) { if ((%vote.nick. [ $+ [ $1 ] ] != $null) || (%vote.nick. [ $+ [ $1 ] ] !isnum)) mta.pm $1 $2 No votekick is currently running. elseif ($2 isin %vote.voters. [ $+ [ $1 ] ]) mta.pm $1 $2 $mta.nick($1,$2) $+ , You have already voted. else { set %vote.voters. [ $+ [ $1 ] ] %vote.voters. [ $+ [ $1 ] ] $2 mta.text $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $round($calc($mta.server($1).players / 2),0)) { mta.text $1 $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes, you're out! mta.kick $1 %vote.nick. [ $+ [ $1 ] ] unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] .timervote [ $+ [ $1 ] ] off } } } } -
on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4),$4,$mta.getid($1,$4)),$2) if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ]) mta.pm $1 $2 Another votekick is running: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) elseif (%a == -1) mta.pm $1 $2 Error - Absent ID/Name else { set %vote.nick. [ $+ [ $1 ] ] %a unset %vote.voters. [ $+ [ $1 ] ] mta.text $1 Votekick "!vote" if u want that $mta.nick($1,%a) shall be kicked. [ $round($calc($mta.server($1).players / 2),0) votes needed][30 sec] .timervote [ $+ [ $1 ] ] 1 30 mta.vote $1 } } elseif ($3 == !vote) { if (!%vote.nick. [ $+ [ $1 ] ]) mta.pm $1 $2 No votekick is currently running. elseif ($2 isin %vote.voters. [ $+ [ $1 ] ]) mta.pm $1 $2 $mta.nick($1,$2) $+ , You have already voted. else { set %vote.voters. [ $+ [ $1 ] ] %vote.voters. [ $+ [ $1 ] ] $2 mta.text $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $round($calc($mta.server($1).players / 2),0)) { mta.text $1 $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes, you're out! mta.kick $1 %vote.nick. [ $+ [ $1 ] ] unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] .timervote [ $+ [ $1 ] ] off } } } } alias mta.vote { mta.text $1 Vote kick cancelled: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] } -
updated the post, try now. If it still doesn't work, help me and tell how does mta store players in the .ini

-
eheh that code must be really old
on *:SIGNAL:mta.command:{ if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ] == $null) { if ($ini($mta.dir $+ $1.ini,ID $+ $4)) { set %vote.nick. [ $+ [ $1 ] ] $4 set %vote.voters. [ $+ [ $1 ] ] $null mta.text $1 Votekick "!vote" if u want that $mta.nick($1,$4) shall be kicked. [ $calc($left($did(mta,$1 $+ 21),2) / 2) votes needed][30 sec] .timervote [ $+ [ $1 ] ] 1 30 mta.vote $1 } else mta.text $1 Give up an existing ID-number: "!votekick <#ID"> } else mta.text $1 Another votekick is running: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) } elseif (($3 == !vote) && (%vote.nick. [ $+ [ $1 ] ] != $null)) { if ($2 !isin %vote.voters. [ $+ [ $1 ] ]) { %vote.voters. [ $+ [ $1 ] ] = %vote.voters. [ $+ [ $1 ] ] $2 mta.text $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $calc($left($did(mta,$1 $+ 21),2) / 2)) { mta.text $1 $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes ur out! mta.kick $1 %vote.nick. [ $+ [ $1 ] ] unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] .timervote [ $+ [ $1 ] ] off } } else mta.text $1 $mta.nick($1,$2) You have already voted } } alias mta.vote { mta.text $1 Vote kick cancelled: $mta.nick($1,%vote.nick. [ $+ [ $1 ] ]) unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] } -
-
order it in an online shop
-
you didn't get the meaning of the word half in my context

Plz, help me Lil Toady!
in Add-ons
Posted
cant help you if http://www.api.hostip.info doesnt work
P.S: City 90% of times will be returned incorrect. I've already tried that. There is no such ip db that'd know that stuff that good. If you did that only for the City, you can get it through my default trace host too