• Welcome to Vice City Multiplayer.
 

[RESOLVED] - Major help needed, its not checking your admin level - [RESOLVED]

Started by Force, July 06, 2008, 05:39:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Force

Hey,

I am having major, major, problems. I thought I was ready to release my server but it seems not. I am using sansan and I have a lot of admin commands, however, its not even checking your level, its letting registered and non registered players use all admin commands apart from !slap...

Any ideas?

Mattz

Just check the other admin cmds and the level reader.

Look at this one.

elseif ($2 == !ban) {
      if ($hget(vcmp,loggedin. $+ %id) < 5) { vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command. | vcmp.kick %id }
      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... | vcmp.kick %id }
          else { vcmp.ban $vcmp.nameid($3) $iif($4-,Reason: $4-) }
        }
      }
    }


if ($hget(vcmp,loggedin. $+ %id) < 5)
if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3)))

Force

Yeah I have checked the other's and its doing it for every single command...the only one that does check it is !slap.... It's weird...

Jack_Bauer

make sure you have all commands closed ( } ) couse i was having some problem that a message was popping up even not using that command



Force

Thanks jack but what makes it even more confusing is that the mirc script editor says that there are no errors  :-X ???

ReVilo

Try resetting all the accounts. Once my accountdata file became corrupted and everyone got admin rights .-.

Force

#6
Lol, I will try that then  :-\

Edit: Is there any way to tell whether or not it is corrupted? I can open it fine and every one's levels are 1 apart from mine and my mate's.

ReVilo

I meant that there was a bug in the script, and it did writeini, but it didn't do it properly then the whole file got sort of 'off' kilter.

Force

#8
Ohh right, well never mind because i fixed it now :D :D :D...

The problem was for some reason in the script there was  NO { } 's on the adminmsg %id You must be Level "blah" to use this command!

Now I am happy :D