Try this:
elseif ($2 == kick) {
if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You Must Be Admin Level 2 Or Higher To Attempt This Command. }
else {
if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
else {
if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't kick someone higher level admin than you... }
else { vcmp.kick %id $3 $4- | vcmp.adminchat ** Admin $vcmp.hgetname(%id) kicked player:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
}
}
}
}
code alias
alias vcmp.kick {
vcmp.adminchat ** Admin $vcmp.hgetname($1) kicking player:[ $$vcmp.hgetname($vcmp.nameid($2)) ] $iif($2,Reason:[ $3- ],)
.timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 250 vcmp.command kick $$vcmp.nameid($2)
}
alias vcmp.kick2 {
** Admin $nick kicking player:[ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason:[ $4- ],)
.timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 250 vcmp.command kick $$vcmp.nameid($1)
}