Jump to content

Getid


stylo

Recommended Posts

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...