Sziasztok, miért nem hozza elő a tök modelt?
public kerdes(id) client_print(id,print_chat,"Felszedett tokjeid: %d",tokok[id]) public plugin_precache() precache_model(tok_model) public csinalj_tokot(id){ new Float:ori[3] get_user_origin(id,ori,0) new Ent = create_entity("info_target") entity_set_string(Ent,EV_SZ_classname,"tok") entity_set_model(Ent,tok_model) entity_set_int(Ent,EV_INT_solid,SOLID_TRIGGER) entity_set_size(Ent,Float:{-50.0,-50.0,-50.0},Float:{50.0,50.0,50.0}) entity_set_edict(Ent,EV_ENT_owner,id) entity_set_origin(Ent,ori) client_print(id,print_chat,"Megcsináltad! Origin: %i %i %i",ori[0],ori[1],ori[2]) return PLUGIN_CONTINUE } public client_connect(id) tokok[id]=0 public Felszedve(ent,id){ tokok[id]+=1 engfunc(EngFunc_RemoveEntity, ent) } stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) { static Float:color[3] color[0] = float(r) color[1] = float(g) color[2] = float(b) set_pev(entity, pev_renderfx, fx) set_pev(entity, pev_rendercolor, color) set_pev(entity, pev_rendermode, render) set_pev(entity, pev_renderamt, float(amount)) }
|