Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Force on July 06, 2008, 07:39:12 pm
-
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?
-
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)))
-
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...
-
make sure you have all commands closed ( } ) couse i was having some problem that a message was popping up even not using that command
-
Thanks jack but what makes it even more confusing is that the mirc script editor says that there are no errors :-X ???
-
Try resetting all the accounts. Once my accountdata file became corrupted and everyone got admin rights .-.
-
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.
-
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.
-
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