Disabling All Commands
#5

If you need to close it just add closing curly-bracket (back to where it was).

Also another suggestion - IsPlayerAdmin() returns a boolean. It can only be either true (1) or false (0).
So instead of doing two if( IsPlayerAdmin() ) statements you could do

if( IsPlayerAdmin() ) { }
else { ]

This way it would be little bit more optimized
Or even better would be if you would use if ( IsPlayerAdmin() ) only once for all commands..
Reply


Messages In This Thread
Disabling All Commands - by SnAcH - 21.04.2009, 21:21
Re: Disabling All Commands - by 13th - 21.04.2009, 21:32
Re: Disabling All Commands - by SnAcH - 21.04.2009, 21:36
Re: Disabling All Commands - by StrickenKid - 21.04.2009, 21:44
Re: Disabling All Commands - by 13th - 21.04.2009, 21:47
Re: Disabling All Commands - by StrickenKid - 21.04.2009, 21:53
Re: Disabling All Commands - by rabit7 - 22.04.2009, 00:31

Forum Jump:


Users browsing this thread: 6 Guest(s)