Hi i have /vip plugins and i need cvar to add vip and remove vip ty
PHP Code:
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < fun >
#include < cstrike >
#include < colorchat >
#define ADMIN_VIP ADMIN_KICK
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "matan"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /vips", "CmdShowVIP" );
}
public CmdShowVIP( id )
{
new szMessage[ 256 ];
new szVIPNames[ 33 ][ 32 ];
new iCount, x, iLen;
new iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum );
new iPlayer;
for( new i = 0; i < iNum; i++ )
{
iPlayer = iPlayers[ i ];
if( get_user_flags( iPlayer ) & ADMIN_VIP )
{
get_user_name( iPlayer, szVIPNames[ iCount++ ], 31 );
}
}
iLen = format( szMessage, charsmax( szMessage ), "^04 VIPS ONLINE: " );
if( iCount > 0 )
{
for( x = 0 ; x < iCount ; x++ )
{
iLen += format( szMessage[iLen], charsmax( szMessage ) - iLen, "%s%s ", szVIPNames[ x ], x < ( iCount - 1 ) ? ", " : "" );
if( iLen > 96 )
{
ColorChat( id, NORMAL, szMessage );
iLen = format( szMessage, 255, "^04" );
}
}
ColorChat( id, NORMAL, szMessage );
}
else
{
iLen += format( szMessage[ iLen ], charsmax( szMessage ) - iLen, "No vips online." );
ColorChat( id, NORMAL, szMessage );
}
}