Aggressor Posted February 11, 2007 Share Posted February 11, 2007 It worked before in mtavc 0.4.1 and older mtama, but since i converted it, it doesnt work anymore. Heres the script: } elseif ($3 == !admin || $3 == !admins) { unset %admins set %countadmin 0 while (%countadmin <26> 300 ) { %admins = %admins $+ (idle) } } %countadmin = %countadmin + 1 } if ( %admins == $null ) { mta.say $1 No admins currently connected. } else { mta.say $1 Current Admins: %admins } unset %admins unset %countadmin } this is somewhere below in the script: } else if ($4 == away && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminaway. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) has left } else if ($4 == brb && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminbrb. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) will Be Right Back } else if ($4 == scripting && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminscripting. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) is scripting and may not awnser } else if ($4 == busy && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminbusy. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) is busy } else if ($4 == msn && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminmsn. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) is on MSN if he/she is needed } else if ($4 == beer && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminbeer. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) is on a beer break } else if ($4 == rum && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminrum. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) is out drinking some rum } else if ($4 == unban && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $5 is unbanned by $mta.name( $1 , $2 ) mta.unban $1 $5 } else if ($4 == ping && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name( $1 , $2 ) set the maximum ping to $5 %max = $5 } else if ($4 == away && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { set %adminaway. [ $+ [ $1 ] $+ . $+ [ $2 ] ] true mta.say $1 $mta.name( $1 , $2 ) has left } else if ($4 == back && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name( $1 , $2 ) has returned unset %adminaway. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminaway. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminbrb. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminscripting. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminmsn. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminbusy. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminrum. [ $+ [ $1 ] $+ . $+ [ $2 ] ] unset %adminbeer. [ $+ [ $1 ] $+ . $+ [ $2 ] ] } else { mta.say $1 Unknown command } } } Thx Link to comment
Scooby Posted February 12, 2007 Share Posted February 12, 2007 Thats some ugly scripting.. lol so u want an !admin command to show admins who are away, along with a reason? i dont know about anyone else but on my race server, people dont tend to idle, especially admins. it was easy to idle back in VC because of the client. I find people tend to leave the server now since u cant do anything else other than race. If u still really want to add this, just say and i'll post u the script. Link to comment
Aggressor Posted February 12, 2007 Author Share Posted February 12, 2007 Ah, this script is ages from 2003. And its for admins only, so if admin is away and players use !admin, so they can see that admin is joined but not behind pc example: !admin Admins connected:mta(away) Thanks for your help Link to comment
Scooby Posted February 12, 2007 Share Posted February 12, 2007 So...Do u want a new one or not? And if so, For which version (Ive noticed some other posts of urs and uve mainly talked about stuff for VC) Link to comment
Aggressor Posted February 12, 2007 Author Share Posted February 12, 2007 [UVA]Sc00bY said: So...Do u want a new one or not? And if so, For which version (Ive noticed some other posts of urs and uve mainly talked about stuff for VC) Yes i would like a working one And my server is gonna run mtavc 0.5. Link to comment
Scooby Posted February 12, 2007 Share Posted February 12, 2007 Aggressor said: [UVA]Sc00bY said: So...Do u want a new one or not? And if so, For which version (Ive noticed some other posts of urs and uve mainly talked about stuff for VC) Yes i would like a working one And my server is gonna run mtavc 0.5. ok i'll write u one when i get back from work. might be better to talk to u on msn or something, since u might want to change some other commands, plus i'll need to know what u use to detect admins. the method uve shown above is kinda nasty. my msn is: the0ne_13@hotmail.com add me and we can sort it out. Link to comment
Aggressor Posted February 12, 2007 Author Share Posted February 12, 2007 [UVA]Sc00bY said: Aggressor said: [UVA]Sc00bY said: So...Do u want a new one or not? And if so, For which version (Ive noticed some other posts of urs and uve mainly talked about stuff for VC) Yes i would like a working one And my server is gonna run mtavc 0.5. ok i'll write u one when i get back from work. might be better to talk to u on msn or something, since u might want to change some other commands, plus i'll need to know what u use to detect admins. the method uve shown above is kinda nasty. my msn is: the0ne_13@hotmail.com add me and we can sort it out. lol, i think my whole script is nasty... added u on msn. Link to comment
Recommended Posts