Raised This Month: $ Target: $400
 0% 

change attack sprite (ESF: esforces)


Post New Thread Reply   
 
Thread Tools Display Modes
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
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-24-2007 , 03:58   Re: change attack sprite (ESF: esforces)
Reply With Quote #2

pid = read_data(1)

should be:

new pid = read_data(1)

Or to make it use less memory:

remove new pid = read_data,

and change 'get_user_weapon(pid, clip, ammo)'
to
'get_user_weapon(read_data(1), clip, ammo)'
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
turbex
Junior Member
Join Date: Jan 2007
Old 01-25-2007 , 02:51   Re: change attack sprite (ESF: esforces)
Reply With Quote #3

ok... thanks...
but... the same result... doesn't work

any idea?
turbex 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 22:29.


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