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

Help me this...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-12-2010 , 02:31   Help me this...
Reply With Quote #1

when the TE attack CT by a knife (but CT not die). Function will run and turn CT into TE.

- Like Zombie mod. Zombie attack human = Human => Zombie
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-12-2010 , 07:30   Re: Help me this...
Reply With Quote #2

you can use ham touch
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Ryokin
Senior Member
Join Date: Jan 2010
Old 12-12-2010 , 07:33   Re: Help me this...
Reply With Quote #3

Quote:
Originally Posted by SaM.ThE.MaN View Post
you can use ham touch
Ham takedamage...
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-12-2010 , 07:41   Re: Help me this...
Reply With Quote #4

Hook Ham_TakeDamage, check if attacker is T player, and victim is CT, change then T's team after your usual weapon checks
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-12-2010 , 08:53   Re: Help me this...
Reply With Quote #5

- Not Work. Zombie Can Still Kill Human Without Infection
Is this right ?

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{        
    if (
victim == attacker)
        return 
HAM_IGNORED;

    if (!
is_user_connected(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED;

    if (
g_zombie[attacker] && !g_zombie[victim])
    {
        if (
get_user_weapon(attacker) != CSW_KNIFE) return HAM_SUPERCEDE;
        if(
get_user_weapon(attacker) == CSW_KNIFE)
        {
                   
makezombieid(victim)
          
         
g_point_evol[attacker] += 100
         g_point_evol
[victim] = 0
        
}
    }

    return 
HAM_IGNORED
}

public 
makezombieid(id)
{
    
g_zombie[id] = 1
    cs_set_user_team
(idCS_TEAM_T)
    
set_zombie_func(id)
         
strip_zombie_weapon(id)

dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-12-2010 , 11:53   Re: Help me this...
Reply With Quote #6

Quote:
Originally Posted by SaM.ThE.MaN View Post
you can use ham touch
did i say touch -.- , i meant take damage
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-14-2010 , 05:53   Re: Help me this...
Reply With Quote #7

Not Work. ...

Last edited by dias; 06-09-2011 at 11:03.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
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 04:35.


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