stylo Posted April 9, 2007 Share Posted April 9, 2007 Hi have have an question couse how can i make it that when i type !freeze JB_frozen jb_frozen gets freezed ingame? i am so far that when i type !freeze 0 the name with the ID 0 gets freezed but can someone help me to get it by an name? Link to comment
stylo Posted April 9, 2007 Author Share Posted April 9, 2007 anyone?? plz??i tryed so much now i am realy stressed out.. it still not works Link to comment
stylo Posted April 9, 2007 Author Share Posted April 9, 2007 i mean wat do i have to place in here on *:TEXT:!freeze*:*:{ /mta.freeze 1 ??? 1 = the server ID Link to comment
Scooby Posted April 10, 2007 Share Posted April 10, 2007 its already added in ur script... why would u need it twice? Link to comment
lil Toady Posted April 10, 2007 Share Posted April 10, 2007 on *:TEXT:!freeze*:*:{ /mta.freeze 1 $mta.getid(1,$2) } Link to comment
stylo Posted April 10, 2007 Author Share Posted April 10, 2007 no still not working /mta.freeze: insufficient parameters Link to comment
stylo Posted April 11, 2007 Author Share Posted April 11, 2007 i did this its working now still with an ID but i can use %a as ID on *:TEXT:!freeze*:#:{ ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($irc.admin($1,$2) >= 5) { /mta.freeze 1 %a } else /msg $chan 4Failed: need to be level 5 to use the command } wanna make it in an alias the parameters etc Link to comment
lil Toady Posted April 11, 2007 Share Posted April 11, 2007 on *:TEXT:*:#:{ %serverID = 1 var %a = $iif($2,$iif($mta.nick(%serverID,$2) != $null,$2,$mta.getid(%serverID,$2))) if ($1 == !freeze) { if ($nick !isop $chan) /msg $chan 4Failed: need to be level 5 to use the command elseif (!%a) /msg $chan 4Failed: Absent ID else /mta.freeze %serverID %a } } if you used $gus.admin($1,$2) or $mta.admin($1,$2) it doesn't mean you can use it with $irc.admin($1,$2) onder on Text function the $1 and $2 are the first and second word so it wont work Link to comment
stylo Posted April 11, 2007 Author Share Posted April 11, 2007 hmm ok it works half it now says error absent ID Link to comment
stylo Posted April 11, 2007 Author Share Posted April 11, 2007 [EDIT] thx m8 it works atleast someone who can help i'l put your name as credit in my release for IRC commands but that will take an while when that comes out... you may be 20 years older Link to comment
Scooby Posted April 11, 2007 Share Posted April 11, 2007 i told u already u dont have to remake all the commands... just signal mta.command with ur irc details. u can probably get all ingame commands working from irc in about 4 lines. Link to comment
stylo Posted April 12, 2007 Author Share Posted April 12, 2007 and i dont know how to make etc that alias btw its almost done Link to comment
Recommended Posts