AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   API Scripting Help ZP 5.0 question (https://forums.alliedmods.net/showthread.php?t=171089)

Sp@jk 11-01-2011 11:31

ZP 5.0 question
 
I am making a gamemode for zp 5.0 with one VIP. I want that after VIP is killed, humans stop respawn, so i done this:
PHP Code:

public zp_fw_deathmatch_respawn_pre(id)
{
    if(
vip_killed && !zp_core_is_zombie(id))
                return 
PLUGIN_HANDLED


the problem is, if zombie is dead, is he still zombie ?

MeRcyLeZZ 11-01-2011 23:36

Re: ZP 5.0 question
 
Quote:

Originally Posted by Sp@jk (Post 1587911)
if zombie is dead, is he still zombie ?

Yes, you can still check if they are zombie/human/nemesis/survivor after death, that code should work. Also, moved to scripting help.

Snaker beatter 11-02-2011 01:47

Re: ZP 5.0 question
 
Quote:

Originally Posted by Sp@jk (Post 1587911)
I am making a gamemode for zp 5.0 with one VIP. I want that after VIP is killed, humans stop respawn, so i done this:
PHP Code:

public zp_fw_deathmatch_respawn_pre(id)
{
    if(
vip_killed && !zp_core_is_zombie(id))
                return 
PLUGIN_HANDLED



I known their is no vip in zp(zp removes it)


All times are GMT -4. The time now is 00:29.

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