need new command code

06/16/2008 06:31 GothicKnight#1
I'm working on a private server for co, but the command code I have is set up so normal players, pm's, and gm's can use them. Does anyone know how I can make it so only pm and gm players can use them?
06/17/2008 12:17 EliteSide#2
let the gm's etc know the commands?
06/20/2008 20:06 Super.Pvper#3
Code:
if (Splitter[0] == "/command" && Client.AccountStatus >= 8)
Essentially you just add something like "&& Client.AccountStatus >= 8" to the end of the command, since 8 and 9 are GM and PM flags.
You may have to modify it to work with your source. =D

==--
&& Client.AccountStatus >= 8 : GMs + PMs can use
&& Client.AccountStatus == 8 : ONLY GMs can use
&& Client.AccountStatus == 9 : ONLY PMs can use
--==