Ez szeritnem kicsivel jobb

Kód:
#include <amxmodx>
#include <fakemeta_util>
#include <fun>
#include <hamsandwich>
new const g_sRemoveEntities[][] =
{
"func_bomb_target",
"info_bomb_target",
"hostage_entity",
"monster_scientist",
"func_hostage_rescue",
"info_hostage_rescue",
"info_vip_start",
"func_vip_safetyzone",
"func_escapezone",
"armoury_entity"
};
new const MAX_REMOVED_ENTITIES = sizeof(g_sRemoveEntities);
public plugin_init()
{
register_plugin("Mp5+Us","1.0","Metal")
RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1)
register_clcmd("buy", "menu_block")
}
public PlayerSpawn( id )
{
if (!is_user_alive(id)) return PLUGIN_HANDLED;
fm_strip_user_weapons(id)
give_item (id,"weapon_mp5")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"ammo_9mm")
give_item (id,"weapon_usp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
give_item (id,"ammo_45acp")
return PLUGIN_HANDLED
}
public menu_block(id)
{
return PLUGIN_HANDLED
}
public fwdSpawn(ent)
{
if( !pev_valid(ent) )
{
return FMRES_IGNORED;
}
new sClass[32];
pev(ent, pev_classname, sClass, 31);
for( new i = 0; i < MAX_REMOVED_ENTITIES; i++ )
{
if( equal(sClass, g_sRemoveEntities[i]) )
{
engfunc(EngFunc_RemoveEntity, ent);
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}
public plugin_precache()
{
register_forward(FM_Spawn, "fwdSpawn", 0);
return PLUGIN_CONTINUE;
}
Ha nem menne, jelezd pls mivel én is csak összedobtam
