21.04.2009, 21:47
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![Smiley](images/smilies/smile.png)
Or even better would be if you would use if ( IsPlayerAdmin() ) only once for all commands..
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
![Smiley](images/smilies/smile.png)
Or even better would be if you would use if ( IsPlayerAdmin() ) only once for all commands..
![Smiley](images/smilies/smile.png)