andeh Posted October 24, 2004 Share Posted October 24, 2004 He joined on several names in that log, that does not show all names, i couldnt be bothered to search the whole log. He's even told me he has a cracked client after in mIRC. This has nothing to do with scripts. can mIRC give on how big a script is ? I Think it can but im not shure. Link to comment
Shib Posted October 24, 2004 Share Posted October 24, 2004 Yes it can, it's quite simple, just press F1 in mIRC and find out. Link to comment
Darkwolf Posted October 25, 2004 Share Posted October 25, 2004 I know this might sound n00bish but im new to the whole MTA:MA thing. I was wondering if sum 1 could tell me how to : 1) combine all my commands into 1 .mrc file 2) make me a !details ID script where it says car a player is driving, Health, and if possible the weapon used. 3)If you could make a admin system with ranks but names for each ranks instead of numbers! Cheers Again, BJack (DJ_Dan dont slag me for being a noob lol ) Link to comment
Shib Posted October 25, 2004 Share Posted October 25, 2004 Ok, just put all the commands under alias mta.command { if ($3 == !details) { if ($4 == $null) { mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } } [/code] Link to comment
Mike Posted October 25, 2004 Share Posted October 25, 2004 Shouldn't that be more like this? alias mta.command { if ($3 == !details) { if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } } Link to comment
Darkwolf Posted October 25, 2004 Share Posted October 25, 2004 Is it possible to integrate outside commands for admin use in Olis MTA:GRS?? ( I guess Oli would know best) Link to comment
Oli Posted October 25, 2004 Share Posted October 25, 2004 exactly what do u mean by "outside commands"? Link to comment
Darkwolf Posted October 25, 2004 Share Posted October 25, 2004 Here I am so far alias mta.command { if ($3 == !info) {mta.say BJack's Experimental Gaming Script 0.1 } } alias mta.command { if ($3 == !details) { if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } } alias mta.command { if ($3 == !details) { mta.say The Current Time in Dublin,London and Lisbon is $time } } ty for dans info script im hoping to build my own admin script onto this, would this be possible?? Link to comment
Aeron Posted October 25, 2004 Share Posted October 25, 2004 Here I am so far alias mta.command { if ($3 == !info) {mta.say BJack's Experimental Gaming Script 0.1 } } alias mta.command { if ($3 == !details) { if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } } alias mta.command { if ($3 == !details) { mta.say The Current Time in Dublin,London and Lisbon is $time } } ty for dans info script im hoping to build my own admin script onto this, would this be possible?? alias mta.command { if ($3 == !info) { mta.say BJack's Experimental Gaming Script 0.1 } if ($3 == !details) { if ($4 == $null) { mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name } else { mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } mta.say The Current Time in Dublin,London and Lisbon is $time } } Link to comment
Mike Posted October 25, 2004 Share Posted October 25, 2004 alias mta.command { if ($3 == !info) { mta.say BJack's Experimental Gaming Script 0.1 } } Needs a $1 ? alias mta.command { if ($3 == !info) { mta.say $1 BJack's Experimental Gaming Script 0.1 } } Link to comment
Darkwolf Posted October 26, 2004 Share Posted October 26, 2004 I really want to get to know more about MTA Scripting and was wondering is there any resources that are good! Link to comment
Mike Posted October 26, 2004 Share Posted October 26, 2004 the scripting.html file that comes with mtama and the help file in mIRC, they're the only resources i've used - there's not much point looking on the web for tutorials as i've found they are no help Link to comment
Boffin Posted October 26, 2004 Share Posted October 26, 2004 Hello again. Thanks for the last script you made for me. I have another request now. The Favorites script in the GRS is it possible to make it so only people with the"secret service" skin and "vice city crusador" skin can use it and change the command to !spy (ID). I hope I've been clear enough. Thanks in advanced. Boffin Link to comment
Mike Posted October 26, 2004 Share Posted October 26, 2004 I could make that if you tell me what the favourites script says (i haven't used it yet) It could just be made as a personal script and loaded into it, and the grs's favourites script can be disabled. Link to comment
Oli Posted October 26, 2004 Share Posted October 26, 2004 [FMJ]Oli: !fav 0 <[FMJ]Oli's Favorites - Weapon: Stubby Shotgun - Vehicle: Gang Burrito - Skin: Robber> Link to comment
Guest Posted October 26, 2004 Share Posted October 26, 2004 dont you just hate it when you get to a cars spawn, and its not their? well heres a script to find out where it is alias mta.enter { %carentid. [ $+ [ $1 ] $+ . $+ [ $2 ] ] = $Mta.vehicle($1,$2) } alias mta.exit { %carleft. [ $+ [ $1 ] $+ . $+ [ %carentid. [ $+ [ $1 ] $+ . $+ [ $2 ] ] ] ] = $replace($replace($mta.area($1,$2),$chr(32),$chr(44) $+ $chr(32)),-,$chr(32)) } alias mta.command { if ($3 == !find) { %fcarini = 1 :fcarini if ($4 isin $readini(mta.data.ini,vehicle2,%fcarini)) { if (%validveh == $null) /set %validveh 0 if ($gettok($mta.vehicle($1,%fcarini).list,1,32) != -1) { !.timer 1 $calc(%validveh) mta.msg $1 $2 vehicle $+ %fcarini found, name: $readini(mta.data.ini,vehicle2,%fcarini) $+ , Driver: $mta.name($1,$gettok($mta.vehicle($1,%fcarini).list,1,32)) $+ , Location: $replace($replace($mta.area($1,$gettok($mta.vehicle($1,%fcarini).list,1,32)),$chr(32),$chr(44) $+ $chr(32)),-,$chr(32)) %carfound = true } elseif (%carleft. [ $+ [ $1 ] $+ . $+ [ %fcarini ] ] != $null) { !.timer 1 $calc(%validveh) mta.msg $1 $2 Last known location of vehicle $+ %fcarini ( $+ $readini(mta.data.ini,vehicle2,%fcarini) $+ ) $+ : %carleft. [ $+ [ $1 ] $+ . $+ [ %fcarini ] ] %carfound = true } /inc %validveh 1 } if (%fcarini < 80) { /inc %fcarini 1 goto fcarini } elseif (%validveh == $null) !timer 1 0 mta.msg $1 $2 invalid vehicle name! elseif (%carfound != true) !timer 1 0 mta.msg $1 $2 could not find vehicle! :cfend /unset %fcarini /unset %findid /unset %findsub /unset %carfound /unset %validveh } } DJ-Mills: !find cheet PM from Admin: Vehicle5 found, name: cheetah, Driver: DJ-Mills, Location: Hangars, Escobar International, Vice City Mainland PM from Admin: last known loaction of vehicle27 (Police Cheetah): Junk Yard, Vice City Mainland (any more cars that match the alias "cheet" would be listed here) ---------------------------------------------------------------------------- heres a way to detect health cheats: (change the %isadmin part to match your admin system) alias mta.command { if ($3- == !chkhp $4 && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { if ($mta.status($1,$4).text == In game) { if ($mta.vehicle($1,$4) == 0) { !.timer 1 0.1 mta.say $1 checking $mta.name($1,$4) for health cheat. !timer 1 1 mta.chkhp $1 $4 $mta.health($1,$4) !.timer 1 0.1 mta.slap $1 $4 } else !timer 1 0.1 mta.say $1 $mta.name($1,$4) is in a vehicle, cannot perform check! } } alias mta.chkhp { ;!timer 1 0.1 mta.say $1 current health: $mta.health($1,$2) previous: $3 if ($mta.health($1,$2) < $3) { !timer 1 0.1 mta.say $1 $mta.name($1,$2) IS NOT using a health cheat! } else { !timer 1 0.1 mta.say $1 Banning $mta.name($1,$2) $+ , Reason: Health Cheat detected! !timer 1 1 mta.ban $1 $2 CHKHP: Health cheat } } DJ-Mills: !chkhp 0 Admin slaps DJ-Mills. Link to comment
Niels Posted October 26, 2004 Share Posted October 26, 2004 by oli's and aeron's admin system is this don't work if ($3 == !add) { mta.say $1 $5 Rights Given to $4 !writeini $+(",$nofile($script(mta.mrc)),$1.ini,") $1 level $5 } if ($3 == !remove) { mta.say $1 Removed Rights from $4 remini $+(",$nofile($script(mta.mrc)),$1.ini,") $1 level $5 } can someone fix that to !add Nickname Level !remove Nickname Link to comment
Darkwolf Posted October 26, 2004 Share Posted October 26, 2004 alias mta.command { if ($3 == !server) { mta.say $1 BJack's Experimental Gaming Script 0.1 } if ($3 == !details) { if ($4 == $null) { mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name } else { mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name } } if ($3 == !time) { mta.say $1 The Current Time in your Timezone is $ctime, However the time in the GMT zone is $gmt It is $day the $date } } wud that be ok for the time section Link to comment
Mike Posted October 26, 2004 Share Posted October 26, 2004 $ctimeReturns total number of seconds elapsed since 00:00:00 GMT, January 1, 1970 based on your system time. I don't think that'll show their current time... also do you use notepad for making scripts? you should use the mIRC script editor (press alt + r twice) as it formats it nicely and checks for bracket mismatches. Link to comment
MeanpantheR Posted October 26, 2004 Share Posted October 26, 2004 mills: nice job on the script Link to comment
*SmartiE* Posted October 26, 2004 Share Posted October 26, 2004 Thought Id Add a Script due to not adding them for a While if ($3 == !quote) { !writeini "quotes.ini" quote 1 I Like Pepperoni Pizza !writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear !writeini "quotes.ini" quote 4 TLR Rule !writeini "quotes.ini" quote 5 TLR Are The Best !writeini "quotes.ini" quote 6 Take My Breath Away } set %quote $rand(1,6) mta.say $1 Quote> $readini(quotes.ini,quote,%quote) } any Problems Let Me Know Im sure u can work it out Link to comment
Darkwolf Posted October 26, 2004 Share Posted October 26, 2004 thanx smartie ill use that on our server! Link to comment
MrJax Posted October 26, 2004 Share Posted October 26, 2004 Thought Id Add a Script due to not adding them for a While if ($3 == !quote) { !writeini "quotes.ini" quote 1 I Like Pepperoni Pizza !writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear !writeini "quotes.ini" quote 4 TLR Rule !writeini "quotes.ini" quote 5 TLR Are The Best !writeini "quotes.ini" quote 6 Take My Breath Away } set %quote $rand(1,6) mta.say $1 Quote> $readini(quotes.ini,quote,%quote) } any Problems Let Me Know Im sure u can work it out if ($3 == !quote) { writeini "quotes.ini" quote 1 I Like Pepperoni Pizza writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear writeini "quotes.ini" quote 3 TLR Rule writeini "quotes.ini" quote 4 TLR Are The Best writeini "quotes.ini" quote 5 Take My Breath Away set %quote $rand(1,5) mta.say $1 Quote> $readini(quotes.ini,quote,%quote) } Link to comment
Oli Posted October 27, 2004 Share Posted October 27, 2004 ouch writing ini every time u do !quote... if ($3 == !quote) { if !$exists($mta.dir $+ quotes.ini) { !writeini "$mta.dir $+ quotes.ini" quote 1 I Like Pepperoni Pizza !writeini "$mta.dir $+ quotes.ini" quote 2 Why does Rain Suddenly Appear !writeini "$mta.dir $+ quotes.ini" quote 3 TLR Rule !writeini "$mta.dir $+ quotes.ini" quote 4 TLR Are The Best !writeini "$mta.dir $+ quotes.ini" quote 5 Take My Breath Away } mta.say $1 Quote> $readini(quotes.ini,quote,$rand(1,5)) } Link to comment
Recommended Posts