public plugin_init() {
    register_forward(FM_Touch,"ForwardTouch" );   
}
new const Csomag[][] = {
    "models/pb/Drop/arany.mdl"
}
public plugin_precache() {
     new cim[121]
    for(new i;i < 1; i++) {
        format(cim, charsmax(cim),"%s", Csomag[i])
        precache_model(cim)
        }
}
public death()
{
new killer = read_data(1)
new victim = read_data(2)
 
if(killer != victim)
{
new mennyiseg = random_num(2, 10)
tp[killer] += mennyiseg
DropEllenorzes(killer)  
while(tp[killer] >=  szamok[szint[killer]])
{
szint[killer]++
tp[killer]-= 100
}
}
}
public DropEllenorzes(id) {
        AranyDobas()
    }
 
 
public logevent_round_start()
{
    new hkt = FM_NULLENT;
    while ( ( hkt = fm_find_ent_by_class( hkt,  "Arany") ) )
    {
        engfunc( EngFunc_RemoveEntity, hkt );
    }  
} 
public AranyDobas()
{  
    new victim = read_data( 2 );
   
    static Float:origin[ 3 ];
    pev( victim, pev_origin, origin );
   
    new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
    origin[ 2 ] -= 36;
    engfunc( EngFunc_SetOrigin, ent, origin );
   
    if( !pev_valid( ent ) )
    {
        return PLUGIN_HANDLED;
    }
   
    set_pev( ent, pev_classname, "Arany" );
    engfunc( EngFunc_SetModel, ent, Csomag[0] );
    dllfunc( DLLFunc_Spawn, ent );
    set_pev( ent, pev_solid, SOLID_BBOX );
    set_pev( ent, pev_movetype, MOVETYPE_NONE );
    engfunc( EngFunc_SetSize, ent, Float:{ -23.160000, -13.660000, -0.050000 }, Float:{ 11.470000, 12.780000, 6.720000 } );
    engfunc( EngFunc_DropToFloor, ent );
   
    return PLUGIN_HANDLED;
}
public AranyTouch(ent, id)
{
    if(pev_valid(ent))
    {
        new classname[ 32 ];
        pev( ent, pev_classname, classname, charsmax( classname ) );
       
        if( !equal( classname, "Arany") )
        {
            return FMRES_IGNORED;
        }
       
        new pPont;
       
        pPont += random_num(1, 11)
         
    pont[id] += pPont
    set_dhudmessage(255, 212, 0, -1.0, 0.15, 0, 6.0, 2.0)
show_dhudmessage(id, "+%d Arany", pPont)
       
        engfunc( EngFunc_RemoveEntity, ent );
    }
    return FMRES_IGNORED
}