• Welcome to Vice City Multiplayer.
 

Change Commands !cmd to /c cmd

Started by TanaX01, July 26, 2008, 03:08:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TanaX01

Hello  :D

Please help my in change commnads !ban To /c ban

    elseif ($2 == !ban) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) { 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 ban someone higher level admin than you... }
          else { vcmp.ban2 $3 $4- | vcmp.adminchat ** Admin $vcmp.hgetname(%id) Banned player:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
          }
        }
      }
    }


Change a

    elseif ($2 == ban) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) { 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 ban someone higher level admin than you... }
          else { vcmp.ban2 $3 $4- | vcmp.adminchat ** Admin $vcmp.hgetname(%id) Banned player:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
          }
        }
      }
    }


??? please help my in game /c ban = Error Invalid Commands.  :-\

ReVilo

try changing the required level to one less than the user who will use the cmd.
so youd change it to 2

Mattz

Just delete

elseif ($2 == !ban) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) { 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 ban someone higher level admin than you... }
          else { vcmp.ban2 $3 $4- | vcmp.adminchat ** Admin $vcmp.hgetname(%id) Banned player:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
          }
        }
      }
    }


Because you already have /c ban in on *:SIGNAL:vcmp.event.command:{

TanaX01

yea mattz thx nice  :o          8)