Harry Posted April 6, 2004 Share Posted April 6, 2004 i mean, how can i do so it works? i puted it in the remote and i need more script so it can work? i dont get it You should load it into MTAMA, not direct in mIRC Link to comment
Guest Posted April 6, 2004 Share Posted April 6, 2004 how i load it then? give me a manual or something Link to comment
Harry Posted April 6, 2004 Share Posted April 6, 2004 how i load it then?give me a manual or something download MTAMA from the mtavc.com website, and read the textfiles in there.. should be enough for my 8-year old brother to understand, so it should be good enough for you Link to comment
Guest Posted April 7, 2004 Share Posted April 7, 2004 i have done that, and i cant connect to my server, everything is right, took my ip: 192.168.0.1 and pass and nick and port and stuff, but i cant cconnect Link to comment
Oli Posted April 7, 2004 Share Posted April 7, 2004 good god... try your EXTERNAL ip, not your INTERNAL ip. Make sure the admin port is different to the client port aswell. Link to comment
Harry Posted April 7, 2004 Share Posted April 7, 2004 i have done that, and i cant connect to my server, everything is right, took my ip: 192.168.0.1 and pass and nick and port and stuff, but i cant cconnect Hm.. if the server runs on the same pc as mIRC it should work. Did you enable the admin port on the server? And are you conencting to the right port (default 4003) Link to comment
Guest Posted April 7, 2004 Share Posted April 7, 2004 yes, i have it on the same computer. i have the admin port 4003 and i have a pass and i use 192.168.0.1 ip # 0 - disabled # 1 - enabled AdminServer 1 #AdminPort 4003 #AdminPassword "****" * Connecting to 192.168.0.1:4003... * Disconnected: Timed out. * Send: 15B | Recieved: 0B | Time: 10secs Link to comment
tbot Posted April 7, 2004 Share Posted April 7, 2004 #AdminPort 4003 #AdminPassword "****" You shouldn't have a '#' in front of those lines... Link to comment
[KFC]KungFu Posted April 7, 2004 Share Posted April 7, 2004 Is this for LAN? That IP is for a router If it is then I am not columbo and I apoligize Link to comment
Guest Posted April 9, 2004 Share Posted April 9, 2004 Duffbeer, very easy to get it to pm you or even beep on a keyword or trigger, for instance under mta.txt if (!admin isin $3-) { /msg duffbeer admin required on server $1 } Player types !admin youll get a message box appear saying you are required on server in whichever mtama slot ok,i added something to this script.well i'm using this my self currently and didnt like the fact that if people typed !admin they got no confirmation if it actully worked so i added this.all credit still goes to whoever started it its real simply but hey it works. if (!admin isin $3-) { /msg triblade Admin request on game server $1 mta.say $1 Admin has been warned ) } Link to comment
Guest Posted April 10, 2004 Share Posted April 10, 2004 hey there i have a request. for 2 scripts that are kina simlair. could a script be made so that if someone in an irc channel /msg to me that the mtama would connect to the specified server? and could it be made that if someone msg something to me on irc that irc runs or quits the server? Link to comment
Aeron Posted April 11, 2004 Share Posted April 11, 2004 hey there i have a request.for 2 scripts that are kina simlair. could a script be made so that if someone in an irc channel /msg to me that the mtama would connect to the specified server? and could it be made that if someone msg something to me on irc that irc runs or quits the server? on *:TEXT:!con*:#: mta.con $2 on *:TEXT:!dis*:#: mta.dis $2 Link to comment
Guest Posted April 11, 2004 Share Posted April 11, 2004 thx aeron. i've got another question if you dont mind its kinda n00bish but whatever if i want to make it so that only admins can do the command? let's say for the countdown down script, how could i make it so that if only the admins can use it,so normal members who typ !countdown will see nothing or maybe a message admin only function Link to comment
Harry Posted April 12, 2004 Share Posted April 12, 2004 DEpends on what kind of admin script you are using. If you're using my one, or some king of derevative, use %isadmin.[$+ $1 $+ . $+ $2] Link to comment
Guest Posted April 12, 2004 Share Posted April 12, 2004 i dont know why harry but you script doesnt see the names and than aks for a password,just nothing happend when a name which is registerd as an admin enters Link to comment
Guest Posted April 20, 2004 Share Posted April 20, 2004 alias mta.join { writeini -n kicker.ini $+(",$mta.name($1,$2),") id $2 } } alias mta.pm { if (($3 == kick) && ($mta.name($1,$2) == me)) { $readini(kicker.ini,$3-,id) mta.kick $1 $ } } ok, when someone joins the server it takes their id number and puts it in an ini file (cos the id number in the client changes but the one in mtama doesnt....) then when i type '/msg kick username' i want it to read back there id number so it corresponds to the mtama id number anyone got any ideas? Link to comment
Harry Posted April 20, 2004 Share Posted April 20, 2004 The easiest, but diry way, is a while loop running through all available id's and check if their name matches the given one, and then returning the id. I'll write one for you when i've got some more time Link to comment
Aeron Posted April 21, 2004 Share Posted April 21, 2004 alias mta.getid { var %a = 0 while (%a <= $mta.maxplayers($1)) { if ($+(*,$2,*) iswm $mta.name($1,%a)) !return %a !inc %a } } This return the matching id of the name with use of part of the nick. Use it as $mta.getid(,) Ex. $mta.getid(5,ero) return the first ID with "ero"in his nick. like in Aeron If nothing matches it returns $null Link to comment
Aeron Posted April 21, 2004 Share Posted April 21, 2004 alias mta.pm { if ($3- == admin ) { mta.say $1 Admin rights given to $mta.name($1-2) writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 } } alias mta.text { if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { if ($3 == !kick) mta.kick $1 $4 if ($3 == !ban) mta.ban $1 $4 } } This is a sort of 'admin' script. 1. Replace with the password you want. 2. Join you server. 3. Type "/msg admin " 4. If the password is correct you see the msg: "Admin rights given to " 5. Now you can run the commands that are between the brackets. like "!kick " or "!ban " Normal user who didn't login can't do this. Link to comment
Guest Posted April 22, 2004 Share Posted April 22, 2004 alias mta.pm { if ($3- == admin ) { mta.say $1 Admin rights given to $mta.name($1-2) writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 } } alias mta.text { if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { if ($3 == !kick) mta.kick $1 $4 if ($3 == !ban) mta.ban $1 $4 } } This is a sort of 'admin' script. 1. Replace with the password you want. 2. Join you server. 3. Type "/msg admin " 4. If the password is correct you see the msg: "Admin rights given to " 5. Now you can run the commands that are between the brackets. like "!kick " or "!ban " Normal user who didn't login can't do this. the problem with that is the id numbers in the client change.... so if someone leaves and their id was 1 then whoever was 2 is now 1 but the mtama client still recognises them as 2, so you would still have to leave the game to kick someone Link to comment
Aeron Posted April 22, 2004 Share Posted April 22, 2004 the problem with that is the id numbers in the client change.... so if someone leaves and their id was 1 then whoever was 2 is now 1 but the mtama client still recognises them as 2, so you would still have to leave the game to kick someone Just look at the scoreboard to get ther REAL ID (F11) Link to comment
DeeJee.nl Posted April 23, 2004 Share Posted April 23, 2004 not really Earon.. the id numbers you see under f11 can be diferent that the ones mtama has in it's list. .. So there has to be a way to logg those id numbers, and when you type !kick 6 the script needs to check with sum sort of log first. Link to comment
OpiuM. Posted April 25, 2004 Share Posted April 25, 2004 alright {ULK}Dross suggested a awesome idea, and here it is: alias mta.text { if ($3 == !votekick) { if (%vote.nick. [ $+ [ $1 ] ] == $null) { if ($ini($+(",$scriptdir,$1,.ini,"),ID $+ $4)) { set %vote.nick. [ $+ [ $1 ] ] $4 set %vote.voters. [ $+ [ $1 ] ] $null mta.say $1 Votekick "!vote" if u want that $mta.name($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.say $1 Give up an existing ID-number: "!votekick <#ID"> } else mta.say $1 Another votekick is running: $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) } if (($3 == !vote) && (%vote.nick. [ $+ [ $1 ] ] != $null)) { if ($2 !isin %vote.voters. [ $+ [ $1 ] ]) { %vote.voters. [ $+ [ $1 ] ] = %vote.voters. [ $+ [ $1 ] ] $2 mta.say $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $calc($left($did(mta,$1 $+ 21),2) / 2)) { mta.say $1 $mta.name($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.say $1 $mta.name($1,$2) You have already voted } elseif ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { if ($3 == !vkstop) mta.say $1 Vote kick cancelled: $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) unset %vote.nick. [ $+ [ $1 ] ] unset %vote.voters. [ $+ [ $1 ] ] } } alias mta.pm { if ($3- == admin as well>) { mta.say $1 Admin rights given to $mta.name($1,$2) writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 } } basiccly, if some moron is abusing votekick, if ur quick enough, and logged in as admin u disable the votekick by typing !vkstop Link to comment
OpiuM. Posted April 25, 2004 Share Posted April 25, 2004 i also wanna make a timer kick for the votekick, amybe you could disable it b4 they r kicked? Link to comment
Recommended Posts