Raised This Month: $ Target: $400
 0% 

message and event troubles


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 10-30-2005 , 13:42   message and event troubles
Reply With Quote #1

can anyone find the bug PLEASE
i've been trying already for 2 weeks to get this code to work

btw im NeoSniperkiller (if you see it in the plugin)


Code:
#include <amxmodx> #include <fun> #include <engine> #include <fakemeta> new kamestarta, kamecharge, kameab, kametrail new weaponName[41] new weaponId new Float:vOrigin[3] public plugin_init() {     register_plugin("Booster","2.0","NeoSniperkiller")     register_event("CurWeapon", "Get_WeaponName", "be", "1=1")     register_message( get_user_msgid( "EETrail" ), "trail" )     return PLUGIN_CONTINUE } public client_PostThink(id){     new ent = find_ent_in_sphere( -1, vOrigin, 64.0 );     while( ent > 0 ){         new szModel[32];         entity_get_string( ent, EV_SZ_model, szModel, 31 );         if( containi( szModel, "sprites/kamecharge.spr" ) != -1 ){             entity_set_model( ent, "sprites/10xkamecharge.spr" );         }     }     return PLUGIN_CONTINUE } public Get_WeaponName(id) {     weaponId = read_data(2)     get_weaponname(weaponId, weaponName, 40) } public trail(id){     if( weaponName[id] == 2){         set_msg_arg_int( 5, ARG_SHORT, kamecharge) // beam start         set_msg_arg_int( 6, ARG_SHORT, kamestarta) // beam head         set_msg_arg_int( 7, ARG_SHORT, kameab)         set_msg_arg_int( 8, ARG_SHORT, kametrail) // trail         set_msg_arg_int( 9, ARG_BYTE, get_msg_arg_int(9) * 10 )         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public plugin_precache(){     kamestarta = precache_model("sprites/10xkameastart.spr")     kameab = precache_model("sprites/10xkamea.spr")     kametrail = precache_model("sprites/10xkametrail.spr")     kamecharge = precache_model("sprites/10xkamecharge.spr")     return PLUGIN_CONTINUE }
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
 


Thread Tools
Display Modes

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:44.


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