Raised This Month: $51 Target: $400
 12% 

API Scripting Help ZP 5.0 question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 11-01-2011 , 11:31   ZP 5.0 question
Reply With Quote #1

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 ?

Last edited by Sp@jk; 11-01-2011 at 11:32.
Sp@jk is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 11-01-2011 , 23:36   Re: ZP 5.0 question
Reply With Quote #2

Quote:
Originally Posted by Sp@jk View Post
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.
__________________
MeRcyLeZZ is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-02-2011 , 01:47   Re: ZP 5.0 question
Reply With Quote #3

Quote:
Originally Posted by Sp@jk View Post
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)
__________________

Last edited by Snaker beatter; 11-02-2011 at 01:47.
Snaker beatter is offline
Reply



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:18.


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