AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Revival KIT HELP!!!! (https://forums.alliedmods.net/showthread.php?t=63426)

purple nurple 11-20-2007 20:20

Revival KIT HELP!!!!
 
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!!

Shular 11-20-2007 22:07

Re: Revival KIT HELP!!!!
 
Do you mean the person gets revived multiple times when u say that "knife attacks over and over"?

kp_uparrow 11-21-2007 00:33

Re: Revival KIT HELP!!!!
 
please clarify

hlstriker 11-21-2007 13:49

Re: Revival KIT HELP!!!!
 
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.

purple nurple 11-21-2007 17:45

Re: Revival KIT HELP!!!!
 
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.


All times are GMT -4. The time now is 01:13.

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