Raised This Month: $ Target: $400
 0% 

change attack sprite (ESF: esforces)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
turbex
Junior Member
Join Date: Jan 2007
Old 01-23-2007 , 14:02   change attack sprite (ESF: esforces)
Reply With Quote #1

what is the correct form to change a attack sprite
for example, i want to change a kamehameha sprite:

and i try this:
PHP Code:
#include <amxmodx>
#include <engine>
#include <fun>
#include <fakemeta>
#include <amxmisc>

new kamestartakamechargekameabkametrail 

public plugin_init()
{
    
register_plugin("myPlugin""1.0""tUrBeX");
    
register_messageget_user_msgid"EETrail" ), "trail" );
}

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"
}

public 
trail(id)
{
    
pid read_data(1)
    new 
clipammo
    
new weaponId get_user_weapon(pidclipammo)
    if (
weaponId == 6)
    {
        
set_msg_arg_int5ARG_SHORTkamecharge// beam start
        
set_msg_arg_int6ARG_SHORTkamestarta// beam head
        
set_msg_arg_int7ARG_SHORTkameab)
        
set_msg_arg_int8ARG_SHORTkametrail// trail
        
set_msg_arg_int9ARG_BYTEget_msg_arg_int(9) * 
    }

but this code doesn't work... please help... what is the correct script?

Last edited by turbex; 01-23-2007 at 14:08. Reason: add new tag
turbex is offline
 



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 22:29.


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