public lada_keszites(id, id_item) { new Float:origins[3] pev(id,pev_origin,origins); new entit=create_entity("info_target") if( get_user_button(id) & IN_DUCK) origins[2] -= 18 else origins[2] -= 36; set_pev(entit,pev_origin,origins) entity_set_model(entit,lada) set_pev(entit,pev_classname,"lada"); dllfunc(DLLFunc_Spawn, entit); set_pev(entit,pev_solid,SOLID_BBOX); set_pev(entit,pev_movetype,MOVETYPE_FLY); engfunc(EngFunc_SetSize,entit,{-1.1, -1.1, -1.1},{1.1, 1.1, 1.1}); engfunc(EngFunc_DropToFloor,entit); set_pev(entit, pev_iuser1, id_item) } public fwd_lada(ent,id,nev) { if(!is_user_alive(id)) return FMRES_IGNORED; if(!pev_valid(ent)) return FMRES_IGNORED; static classname[32]; pev(ent,pev_classname,classname,31); if(equali(classname,"lada")) { if(pev(id,pev_button)) { lada[id] ++ engfunc(EngFunc_RemoveEntity,ent); } } else return FMRES_IGNORED; return PLUGIN_HANDLED }