Raised This Month: $ Target: $400
 0% 

2 features help!!!! (useful for many ppl i think)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-01-2005 , 20:53  
Reply With Quote #1

Code:
#include <amxmodx>  #include <amxmisc>  #include <fun>  #include <cstrike>  #include <engine>  public plugin_precache()  {     precache_model("sprites/plasma.spr")     precache_model("sprites/suicideexplode.spr")     precache_sound("misc/doh7.wav")     return PLUGIN_CONTINUE  }  public plugin_init()  {     register_plugin("Plasmatest","1.00","Haim")     register_clcmd("shoot", "myFunc")     register_touch("PlasmaBall","*","plasma_interact")  }  public myfunc(id)  {     new origin[3]     get_user_origin(id,origin,1)     new ePlasmaBall = create_entity("info_target")     entity_set_string(ePlasmaBall, EV_SZ_classname, "PlasmaBall")     entity_set_vector(ePlasmaBall, EV_VEC_origin,origin)     new Float:maxs[3] = {32.0,32.0,64.0}     new Float:mins[3] = {-32.0,-32.0,-64.0}     entity_set_size(ePlasmaBall,mins,maxs)     entity_set_int(ePlasmaBall,EV_INT_solid, SOLID_BBOX)     entity_set_int(ePlasmaBall,EV_INT_movetype,MOVETYPE_TOSS)     entity_set_float(ePlasmaBall,EV_FL_framerate,1.0)     set_rendering(ePlasmaBall, kRenderFxNoDissipation, 255, 255, 255, kRenderGlow, 10)     entity_set_model(ePlasmaBall, "plasma")     emit_sound(ePlasmaBall, CHAN_STATIC, "doh7", 1.0, ATTN_NORM, 0, PITCH_NORM)  }  public plasma_interact(ePlasmaBall,other) {     if(other == 0) {         new Float:fOrigin[3]         new iOrigin[3]         entity_get_vector(ePlasmaBall, EV_VEC_origin, fOrigin)         FVecIVec(fOrigin, iOrigin)         message_begin(MSG_BROADCAST, SVC_TEMPENTITY)         write_byte(3) // TE_EXPLOSION         write_coord(iOrigin[0])         write_coord(iOrigin[1])         write_coord(iOrigin[2]+50)         write_short(gExplosionModel)         write_byte(100)         write_byte(0)         write_byte(0)         message_end()         RadiusDamage(fOrigin, 30,  120)         remove_entity(ePlasmaBall)     }     else if(is_user_connected(other)) {         user_kill(other, 0)         new origin[3]         get_user_origin(other, origin, 0)         message_begin(MSG_BROADCAST, SVC_TEMPENTITY)         write_byte(3) // TE_EXPLOSION         write_coord(origin[0])         write_coord(origin[1])         write_coord(origin[2])         write_short(gExplosionModel)         write_byte(100)         write_byte(0)         write_byte(0)         message_end()     }  }

this is what i did...
and i got 2 errors and 1 warning

Code:
<28>warning 213: tag mismatch
<56>error 017: undefinded symbol "gExplosionModel"
<79>error 017: undefinded symbol "gExplosionModel"
and those are the lines:

Code:
<28>entity_set_vector(ePlasmaBall, EV_VEC_origin,origin)
<56>write_short(gExplosionModel)
<79>write_short(gExplosionModel)
haimmaik is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode