It is this plugin, and I modified it, that it effects just admins. So you can see the cvars from the link.
http://forums.alliedmods.net/showthread.php?p=806660
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#define SetUserAdmin(%1) g_bAdmin |= 1<<(%1 & 31)
#define ClearUserAdmin(%1) g_bAdmin &= ~( 1<<(%1 & 31))
#define IsUserAdmin(%1) ( g_bAdmin & 1<<(%1 & 31))
new g_bAdmin;
new gCvarArmor;
new gCvarAmount;
public plugin_init() {
register_plugin( "Admin Spawn with Armor", "1.0", "xPaw" );
gCvarArmor = register_cvar( "sv_armor", "2" );
gCvarAmount = register_cvar( "sv_armor_amount", "100" );
RegisterHam( Ham_Spawn, "player", "fwdPlayerSpawn", 1 );
}
public client_authorized(id)
{
if(is_user_admin(id))
{
SetUserAdmin(id)
}
else
{
ClearUserAdmin(id)
}
}
public fwdPlayerSpawn( id ) {
if( is_user_alive( id ) && IsUserAdmin( id ) ) {
new iPluginArmorType = clamp( get_pcvar_num( gCvarArmor ), 0, 2 );
if( iPluginArmorType > 0 ) {
new CsArmorType:iPlayerArmorType;
new iPlayerAmount = cs_get_user_armor( id, iPlayerArmorType );
new iPluginAmount = min( get_pcvar_num( gCvarAmount ), 0xFF );
cs_set_user_armor( id, max( iPluginAmount, iPlayerAmount ), CsArmorType:max( iPluginArmorType, _:iPlayerArmorType ) );
}
}
}
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.