-
Posts
2,318 -
Joined
-
Last visited
Everything posted by lil Toady
-
next time use search and ehh, couldn't you guess you have to post in the help section? http://forum.mtavc.com/viewtopic.php?t=15151
-
yeah but in games bullets kinda "teleport" into the targets body i.e. they dont travel to get there wrong, they do not "teleport", they do the whole way from one player to another
-
thnx m8, yeah i had a great day
-
in mta:sa dm you can shoot the body even with high ping I've been playing once with 1000 ping and that didn't spoil my game anyhow. I was still shooting in people's body, and they were shooting me
-
on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if (($3 == !time) || ($3 == !date)) mta.text $1 Time: $time - Date: $date elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) elseif ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) } !!!
-
There is no problem with ban. If it didn't kick out a player when you released the command, that's probably admin packet loss, if it kicked him out but he returned, the player has a dynamic ip, that means that you'll need to ban whole his range to get rid of him. But that range ban could also ban lots of players who didn't do anything There is really no good solution for that
-
But there is no way to know which unnamed timers are for ur auto messages and which are for other stuff. its up to u.. dont name them if u dont want to. yes you can! if (mta.say* iswm $timer(ID).com) {} Well yeh you can get anything from a timer, but it's easier to name them
-
Wrong BetaDevil! Well, multikill, the script you posted should work, maybe that's you doing something wrong
-
it does work on mta:sa, if you need that for 0.5 u need this: on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !lol) mta.say $1 $mta.name($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.name($1,%a))) }
-
there is a way to know how many timers you have $timer(0)
-
haha (OVG)Santi, i think the topic creator should decide himself what he wants to add, don't bug him to add your scripts
-
Sure, but i dont think theres a way to stop individual unnamed timers. coz as it was b4, everytime u connect, a new timer is started, the old one didnt get stopped. so u would end up with tons of timers running and eventually loads of messages. Yeah there is a way to stop unnamed timers but it's a bit complicated. Every timer has it's own id, so you'll have to do a loop and check what every timer does and stop the needed one.
-
Those bombs in the video were showing you what you can do with the scripting, not just static mta functions. So of course you can script any bomb you like..
-
yes, just any command in format elseif ($3 == !something) mta.text $1 my text just make sure that the first command always has an 'if (blablabla) {}' and others 'elseif (blablabla) {}' or just use 'if' everywhere, but that's gonna use more cpu that $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) is there to show a name if it's specified or show nothing if it's not
-
omg i believe there are a way easier ways of doing that. Will look into it later lazy to read
-
if u set n to 0 it will repeat it non-stop after the interval u set bleh, just type '/help /timer' in mirc
-
on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) elseif ($3 == !wb) mta.text $1 $mta.nick($1,$2) says welcome back $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) }
-
the fact is that you didn't do anything special so it was just useless. Also for scripting beginners it's a way easier to do that the way i posted imo. W/e i won't argue..
-
bleh, those $iif's don't make it look cool damnet007 and it's too messy like that. I'd say that what you did is useless and has only spoiled the script
-
Here, you only have to add some levels for the commands and change the CLANTAG to your clan tag P.S: Next time use search. Scripts like that have been posted before. on *:SIGNAL:mta.join:{ if (CLANTAG isin $mta.nick($1,$2)) { var %a = 0 while (%a <= $lines($scriptdir $+ members.txt)) { if ($mta.nick($1,$2) == $read($scriptdir $+ members.txt,%a)) !halt !inc %a } mta.text $1 Kicking: $+(',$mta.nick($1,$2),') - imposter. mta.kick $1 $2 } } on *:SIGNAL:mta.command:{ if ($3 == !shutdown) { mta.text $1 Server is being shut down. mta.shutdown $1 } elseif ($3 == !addmember) { if ($4) { mta.text $1 Member $+(',$4,') added. !write " $+ $scriptdir $+ members.txt" $4 } else mta.pm $1 $2 Error - Member name missing } elseif ($3 == !remmember) { if ($4) { var %a = 0 while (%a <= $lines($scriptdir $+ members.txt)) { if ($4 == $read($scriptdir $+ members.txt,%a)) { mta.text $1 Member $+(',$read($scriptdir $+ members.txt,%a),') removed. !write -dl $+ %a " $+ $scriptdir $+ members.txt" !halt } !inc %a } mta.pm $1 $2 Member $+(',$4,') not found } else mta.pm $1 $2 Error - Member name missing } }
-
i don't see why could it not work, maybe your friend does something wrong?
-
bah, my fault. forgot the > sign. And yeah, like BetaDevil posted, you have to add the ranks in the order from the top one to the lowest one
-
on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2) if ($3 == !lookup) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else my.trace $1 %a } } alias my.trace { set %my.trace $1 $2 if (!$sock(my.trace $+ $mta.ip($1,$2))) sockopen my.trace $+ $mta.ip($1,$2) api.hostip.info 80 } on *:SOCKOPEN:my.trace*:{ tokenize 32 %my.trace if ($sockerr > 0) { sockclose $sockname mta.text $1 Trace: An error has occured. (socket error) } else { sockwrite -n $sockname GET /get_html.php?ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname Host: api.hostip.info sockwrite -n $sockname Connection: keep-alive sockwrite $sockname $crlf } } on *:SOCKCLOSE:my.trace*:{ unset %my.trace tokenize 32 %my.trace mta.text $1 $mta.nick($1,$2) - Country: $gettok(%my.trace.r,1,32) $+ , City: $gettok(%my.trace.r,2,32) } on *:SOCKREAD:my.trace*:{ var %t sockread %t if (Country isin %t) { set %my.trace.r $iif(Unknown isin %t,Unknown,$gettok(%t,2-,32)) } elseif (City isin %t) { set %my.trace.r %my.trace.r $iif(Unknown isin %t,Unknown,$gettok(%t,2-,32)) sockclose $sockname } }
-
on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) }
-
on *:SIGNAL:mta.join:{ !writeini " $+ $scriptdir $+ mta.rank.ini" RANKS $mta.nick($1,$2) $calc($readini($scriptdir $+ mta.rank.ini,RANKS,$mta.nick($1,$2)) + 1) mta.rank $1 $2 } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if ($3 == !rank) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.rank $1 %a } } alias mta.rank { var %rank = $readini($scriptdir $+ mta.rank.ini,RANKS,$mta.nick($1,$2)) if (%rank == 10) mta.text $1 $mta.nick($1,$2) $+ 's rank is: blablabla elseif (%rank == 20) mta.text $1 $mta.nick($1,$2) $+ 's rank is: blablablabla }
