AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How to detect which players are Zombies with the MM zombie plugin (https://forums.alliedmods.net/showthread.php?t=124629)

jtp10181 04-18-2010 19:00

How to detect which players are Zombies with the MM zombie plugin
 
I am trying to edit a skin changer plugin and want to disable it for people who are zombies. I was wondering if anyone has done any custom plugins for the MM zombie, and if there is a know way to detect which players are zombies. Checking the models is not a good option because it is configurable in this zombie mod and could change.

It is this zombie mod: http://www.zombiemod.com/forums/

Leonardo 04-18-2010 23:52

Re: How to detect which players are Zombies with the MM zombie plugin
 
in ZombieMod team_t plays as zombies

FaTony 04-18-2010 23:53

Re: How to detect which players are Zombies with the MM zombie plugin
 
After the first zombie appeared.

Leonardo 04-19-2010 00:04

Re: How to detect which players are Zombies with the MM zombie plugin
 
skin sets on player_spawn
players are switch when zombie_timer_max over

exvel 04-19-2010 04:06

Re: How to detect which players are Zombies with the MM zombie plugin
 
AFAIK there is no safe way to detect this in ZombieMod. You will be able to do this with natives in Zombie:Reloaded.

Leonardo 04-19-2010 04:15

Re: How to detect which players are Zombies with the MM zombie plugin
 
what is the Zombie:Reloaded?
same mod with zombies? -_-

exvel 04-19-2010 04:18

Re: How to detect which players are Zombies with the MM zombie plugin
 
Quote:

Originally Posted by Leonardo (Post 1154733)
what is the Zombie:Reloaded?
same mod with zombies? -_-

Yeah. It more advance and works through SourceMod.

Leonardo 04-19-2010 04:28

Re: How to detect which players are Zombies with the MM zombie plugin
 
what's the difference from ZM and ZH?

Someone78 04-19-2010 04:54

Re: How to detect which players are Zombies with the MM zombie plugin
 
Quote:

2.0.1 B
====
- Added zombification event to all zombificatins (doh!) -1 if no attacker (first zombie(s)).

2.0.1 A
====
- Added zombification event, needs to be added to modevents.res for scripting.
Code:

#pragma semicolon 1

new bool:g_bZombie[MAXPLAYERS + 1];

public OnPluginStart()
{
        HookEvent("player_spawn", Event_PlayerSpawn);
        HookEvent("zombification", Event_Zombification);
}

public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
        new client = GetClientOfUserId(GetEventInt(event, "userid"));

        g_bZombie[client] = false;
}

public Event_Zombification(Handle:event, const String:name[], bool:dontBroadcast)
{
        new client = GetEventInt(event, "userid");

        g_bZombie[client] = true;
}


jtp10181 04-20-2010 22:18

Re: How to detect which players are Zombies with the MM zombie plugin
 
Someone78, thanks that was what I needed. I did have to do one other thing to make it work, found it down further in the changelog.

The following needs to be added before the closing } in resource/modevents.res to use the zombification event in other plugins.
Code:

"zombification"
{
  "userid" "short"    // user ID who was zombified.
  "attacker" "short"  // user ID who killed.
  "class"  "short"  // class ID who zombified.
}



All times are GMT -4. The time now is 02:39.

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