QuickBreakdown Posted August 7, 2007 Share Posted August 7, 2007 Does anybody have a GetID script for MTA:SA? Like i type: !id Recon then it says: Recon's ID: 0 or something? Thanks! Link to comment
SanZoR Posted August 7, 2007 Share Posted August 7, 2007 alias get.id { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } Link to comment
lil Toady Posted August 7, 2007 Share Posted August 7, 2007 you haven't actually posted the requested script Lil'San^,^u<3, and why would you need to write this function once again if it's already in mta:ma? on *:SIGNAL:mta.command:{ if ($3 == !id) { if (!$4) mta.text $1 $mta.nick($1,$2) $+ 's ID: $2 elseif (!$mta.getid($1,$4)) mta.text $1 Error - Absent Nick else mta.text $1 $mta.nick($1,$mta.getid($1,$4)) $+ 's ID: $mta.getid($1,$4) } } Link to comment
Recommended Posts