Raised This Month: $ Target: $400
 0% 

Revival KIT HELP!!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 11-20-2007 , 20:20   Revival KIT HELP!!!!
Reply With Quote #1

I'm trying to make it so when you use knife attack it revives the person(WHICH WORKS BUT ONE THING) the knife attacks over and over is there anyway i can stop the person from attacking but still revive the person dead? i would like to change the revival kit so it replaces the flash bang but the guy throw it when he uses it. Can u teach me how to block the person from attack but still revive? IF U CAN HELP THANKSS!!

Last edited by purple nurple; 11-22-2007 at 00:46. Reason: No longer need help.
purple nurple is offline
Shular
Junior Member
Join Date: Nov 2007
Old 11-20-2007 , 22:07   Re: Revival KIT HELP!!!!
Reply With Quote #2

Do you mean the person gets revived multiple times when u say that "knife attacks over and over"?
__________________
My Heros
Koolaid|-----50%-----|
PeterPan|-------70%---|
Spawn|----40%------|
Hollywood
Complete
CastorTroy
Complete
YosemiteSam
Complete


Shular is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-21-2007 , 00:33   Re: Revival KIT HELP!!!!
Reply With Quote #3

please clarify
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-21-2007 , 13:49   Re: Revival KIT HELP!!!!
Reply With Quote #4

Blocking weapon attack...
http://forums.alliedmods.net/showthread.php?t=63016

and blocking animation of attack...

PHP Code:
public plugin_init()
{
    
register_forward(FM_UpdateClientData"UpdateClientData_Post"1);
}

public 
UpdateClientData_Post(idsendweaponscd_handle)
{
    if(!
is_user_alive(id))
        return 
FMRES_IGNORED;
    
    
set_cd(cd_handleCD_ID0);
    
    return 
FMRES_HANDLED;

Just add checks to see when to block and when not to.

Last edited by hlstriker; 11-21-2007 at 13:53.
hlstriker is offline
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 11-21-2007 , 17:45   Re: Revival KIT HELP!!!!
Reply With Quote #5

Quote:
Do you mean the person gets revived multiple times when u say that "knife attacks over and over"?
No its when your reviving someone i want the person not to be able to use there knife. like im going to make the rk the smoke grenade and when someone revives someone i dont want them to throw the smoke grenade.
purple nurple 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 01:13.


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