AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ZP] STOP ZOMBIE INFECTION!!! (https://forums.alliedmods.net/showthread.php?t=156069)

Nightfall1 04-30-2011 15:31

[ZP] STOP ZOMBIE INFECTION!!!
 
Code:

public zp_user_infect_attempt(id, infector)
{
    if(!g_HasToxic[id])
        return PLUGIN_HANDLED
    return PLUGIN_CONTINUE
}

Code:

public zp_user_infect_attempt(id, infector)
{
    if(g_HasToxic[id])
        return ZP_PLUGIN_HANDLED //97
    return PLUGIN_CONTINUE
}

the frist one work but the second is not working :O is ignore my true g_HasToxic[id]...
why ZP_PLUGIN_HANDLED is not block infection ????

ProIcons 04-30-2011 17:09

Re: [ZP] STOP ZOMBIE INFECTION!!!
 
You just returning the value "98" how do you expect to stop the infection?

SonicSonedit 04-30-2011 19:35

Re: [ZP] STOP ZOMBIE INFECTION!!!
 
Nightfall1
Do you use ZPA?

Nightfall1 05-01-2011 06:45

Re: [ZP] STOP ZOMBIE INFECTION!!!
 
why do you ask my, that is a diference from original zombie plague and ZPA? any whay I have my own custom change of zombie plague, if there is a probleme with zombie plague adanced plz give my the solution, maybe I do abdul-rehman mistakes
Code:

/**
 * Called on a player infect/cure attempt. You can use this to block
 * an infection/humanization by returning ZP_PLUGIN_HANDLED in your plugin.
 *
 * Note: Right now this is only available after the ZP round starts, since some
 * situations (like blocking a first zombie's infection) are not yet handled.
 */
forward zp_user_infect_attempt(id, infector, nemesis)


SonicSonedit 05-01-2011 10:44

Re: [ZP] STOP ZOMBIE INFECTION!!!
 
Nightfall1
ZPA is very buggy. Use ZP4.3 or try to fix the problem itself.


All times are GMT -4. The time now is 04:19.

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