This is correct:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#define PLUGIN "HE SPAWN"
#define VERSION "1.0"
#define AUTHOR "Johny"
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
}
public fwHamPlayerSpawnPost(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
{
give_item(id, "weapon_hegrenade");
}
}
__________________