Twój kod jest niepoprawny i nie będzie działać poprawnie.
Dla eventu startu rundy musiałbyś przeszukiwać graczy pętlą,
o wiele lepszy rezultat zdaje w tym wypadku event spawnu.
Ponadto, amxmisc jest niepotrzebny.
@topic:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>
new weapon_id;
public plugin_init(){
register_plugin("dEagle", "0.1", "benio101");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
}
public SpawnedEventPre(id){
if(is_user_alive(id)){
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
weapon_id=find_ent_by_owner(-1, "weapon_deagle", id);
if(weapon_id)cs_set_weapon_ammo(weapon_id, 7);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
}