View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-23-2018 , 04:16   Re: Contact Owner [Helping Tool]
Reply With Quote #8

At a quick look:

PHP Code:
if ( g_iVaultHandle == INVALID_HANDLE )
set_fail_state"Error opening nVault" ); 
PHP Code:
if( ~ get_user_flagsid ) & FLAG_VIEW )
return 
PLUGIN_HANDLED
You already know. Be consistent with { }.

PHP Code:
public plugin_end( )
{
nvault_closeg_iVaultHandle );

Indent.

PHP Code:
menu_setpropiMenuMPROP_EXITMEXIT_ALL ); 
This is applied automatically. It's not wrong to explicit it tho.

In MessageStart szArgs and szName are useless. Retrieve the information directly into eData[ Message_Text ] and eData[ Message_Sender ].

szMessageCount[ 2 ] szMsgId[2] buffers should be increased, you could have 50/100/1000 messages.

Possible features to add:
-ability for admins to remove a message once they read it
-ability for the sender to see when an admin opened and read his message. Maybe a chat message when he connects/when the message is read if he is connected.
__________________

Last edited by HamletEagle; 09-23-2018 at 04:16.
HamletEagle is offline