Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 04-18-2010 , 19:00   How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #1

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/
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-18-2010 , 23:52   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #2

in ZombieMod team_t plays as zombies
__________________
Leonardo is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 04-18-2010 , 23:53   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #3

After the first zombie appeared.
FaTony is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-19-2010 , 00:04   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #4

skin sets on player_spawn
players are switch when zombie_timer_max over
__________________

Last edited by Leonardo; 04-19-2010 at 00:07.
Leonardo is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 04-19-2010 , 04:06   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #5

AFAIK there is no safe way to detect this in ZombieMod. You will be able to do this with natives in Zombie:Reloaded.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-19-2010 , 04:15   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #6

what is the Zombie:Reloaded?
same mod with zombies? -_-
__________________
Leonardo is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 04-19-2010 , 04:18   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #7

Quote:
Originally Posted by Leonardo View Post
what is the Zombie:Reloaded?
same mod with zombies? -_-
Yeah. It more advance and works through SourceMod.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-19-2010 , 04:28   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #8

what's the difference from ZM and ZH?
__________________
Leonardo is offline
Someone78
Junior Member
Join Date: Mar 2009
Location: Russia
Old 04-19-2010 , 04:54   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #9

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;
}

Last edited by Someone78; 04-19-2010 at 04:56.
Someone78 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 04-20-2010 , 22:18   Re: How to detect which players are Zombies with the MM zombie plugin
Reply With Quote #10

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.
}
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply


Thread Tools
Display Modes

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 16:12.


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