hello, im trying to make people with "h" adm flag in my server have smoke, 2 flash's and he and vesthelm every round
i tryied this code but everyone in the server has the smoke, i want just for the vips with "h" flag
can anyone help me?
PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>
#include < hamsandwich >
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#define VIP-ACC ADMIN_LEVEL_H
new VIPhealth;
public plugin_init()
{
register_plugin( "VIP Privilage", "1.0", "(K![L]leR-ND)" )
RegisterHam(Ham_Spawn, "player", "Privilage", 1)
VIPhealth = register_cvar("health_VIP", "100")
}
public Privilage(id)
{
if( get_user_flags( id ) & VIP-ACC )
{
ColorChat(id, GREEN, "^1[ ^4GameOver ^1] ^3You got^1 100HP ^3-^1 Full nade Pack")
}
set_user_health(id, get_pcvar_num(VIPhealth))
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
__________________