Raised This Month: $51 Target: $400
 12% 

Effect (Sprites)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghostmast
Junior Member
Join Date: Jul 2010
Old 10-04-2010 , 07:28   Effect (Sprites)
Reply With Quote #1

http://s1179.photobucket.com/albums/...nferno0000.jpg

How to add effect to zombie ?
Ghostmast is offline
Welgericht
Member
Join Date: Jul 2010
Old 10-04-2010 , 08:56   Re: Effect (Sprites)
Reply With Quote #2

It isn't hard to make it, but only if you will upload this sprite.
Welgericht is offline
Daku
Senior Member
Join Date: Nov 2009
Location: Poland / Polska
Old 10-04-2010 , 09:03   Re: Effect (Sprites)
Reply With Quote #3

hard nooo
you must "CATCH" damage event and delay sprite eg 5 sec

if you give me working damage event ( 5 sec delay func i make this 4 u)
Daku is offline
Send a message via Skype™ to Daku
Ghostmast
Junior Member
Join Date: Jul 2010
Old 10-04-2010 , 09:48   Re: Effect (Sprites)
Reply With Quote #4

Quote:
It isn't hard to make it, but only if you will upload this sprite.
http://www.fileswap.com/share/cf1a34...ealth.spr.html
Ghostmast is offline
Daku
Senior Member
Join Date: Nov 2009
Location: Poland / Polska
Old 10-04-2010 , 10:25   Re: Effect (Sprites)
Reply With Quote #5

-.- i have this *.spr file

i must have good coded damage event
Daku is offline
Send a message via Skype™ to Daku
MisterDeath
BANNED
Join Date: Sep 2010
Location: pico pal q lee
Old 10-04-2010 , 11:39   Re: Effect (Sprites)
Reply With Quote #6

TE_SPRITETRAIL
MisterDeath is offline
Daku
Senior Member
Join Date: Nov 2009
Location: Poland / Polska
Old 10-04-2010 , 12:10   Re: Effect (Sprites)
Reply With Quote #7

Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <zombieplague>
new bool:g_p_alive[33]
new g_max_players
new nhp[33]
new g_heal

public plugin_precache() 
{ 
g_heal=precache_model("sprites/zb3_heal.spr") 
} 
public plugin_init(){
    register_plugin("AutoRegeneration", "1.0", "Sylwester")
    RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
    RegisterHam(Ham_Killed, "player", "Player_Killed" )
    g_max_players = get_maxplayers()
    set_task(1.0, "regen", 2152, _, _, "b")
}

public Player_Spawn(id){
    if(!is_user_alive(id))
        return
    g_p_alive[id] = true
}

public Player_Killed(id){
    g_p_alive[id] = false
}

public client_disconnect(id){
    g_p_alive[id] = false
}

public regen(){
    new victim
    victim = read_data(2)
    
    static id, hp
    nhp = zp_get_zombie_maxhealth(id);
    for(id=1; id<=g_max_players; id++){
        if(!g_p_alive[id])
            continue
	    
        hp = get_user_health(id)
        if(hp >= nhp[id])
        {
            set_user_health(id, hp+100)
	   set_task(0.001, "fire", victim)
        }
    }
}  
fire_zombie(origin[3]) 
{ 
   message_begin(MSG_BROADCAST,SVC_TEMPENTITY) 
   write_byte(TE_SPRITE) 
   write_coord(origin[0]) 
   write_coord(origin[1]) 
   write_coord(origin[2]+=30) 
   write_short(g_heal) 
   write_byte(8) 
   write_byte(255) 
   message_end() 
} 
public fire(victim) 
{ 
   new origin[3] 
   get_user_origin(victim,origin) 
    
   fire_zombie(origin) 
}
but it doesn't work
Daku is offline
Send a message via Skype™ to Daku
regan-s1
Junior Member
Join Date: May 2010
Old 10-04-2010 , 13:02   Re: Effect (Sprites)
Reply With Quote #8

PHP Code:
public regen(){
    new 
victim
    victim 
read_data(2)
    
    static 
idhp
    hp 
zp_get_zombie_maxhealth(id);
    for(
id=1id<=g_max_playersid++){
        if(!
g_p_alive[id])
            continue
        
        
hp get_user_health(id)
        if(
hp >= nhp[id])
        {
            
set_user_health(idhp+100)
        
set_task(0.001"fire"victim)
        }
    }

regan-s1 is offline
Daku
Senior Member
Join Date: Nov 2009
Location: Poland / Polska
Old 10-04-2010 , 13:06   Re: Effect (Sprites)
Reply With Quote #9

loose identyfication
plugin work but add hp (not end ) normal zombie has 1111111 hp xD

i add it on my server but many bugs are in this time

Last edited by Daku; 10-04-2010 at 13:48.
Daku is offline
Send a message via Skype™ to Daku
Daku
Senior Member
Join Date: Nov 2009
Location: Poland / Polska
Old 10-04-2010 , 14:38   Re: Effect (Sprites)
Reply With Quote #10

hahahah I MAKE IT WORK FINE WITH NO BUGS !!!
Daku is offline
Send a message via Skype™ to Daku
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 12:24.


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