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

Zombie Count


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ALonsoVIP4141
BANNED
Join Date: May 2021
Location: https://t.me/pump_upp
Old 06-15-2022 , 18:00   Zombie Count
Reply With Quote #1

Hello ,
I want to know how to quantify the amount of first zombie in zombie plague 5.0 + the nemesis count


For example:
if members is 32/32. turn 4 nemesis or 4 zombies or with %

Last edited by ALonsoVIP4141; 06-15-2022 at 18:38.
ALonsoVIP4141 is offline
Send a message via ICQ to ALonsoVIP4141 Send a message via AIM to ALonsoVIP4141 Send a message via Yahoo to ALonsoVIP4141 Send a message via Skype™ to ALonsoVIP4141
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-15-2022 , 18:29   Re: Zombie Count
Reply With Quote #2

Quote:
Originally Posted by ALonsoVIP4141 View Post
Hello ,
I want to know how to quantify the amount of first zombie in zombie plague 5.0 + the nemesis count


For example:
if members is 32/32. turn 4 nemesis or 4 zombies or with %
Try to create custom stock like this:
PHP Code:
GetZombieNum( )
{
    new 
iPlayer32 ], iNumiCount;
    
get_playersiPlayeriNum )
    
    for( new 
iiNumi++ )
    {
        if( 
NativeofZombie) )
        {
            
iCount++;
        }
    }
    
    return 
iCount;

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
ALonsoVIP4141
BANNED
Join Date: May 2021
Location: https://t.me/pump_upp
Old 06-15-2022 , 18:41   Re: Zombie Count
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
Try to create custom stock like this:
PHP Code:
GetZombieNum( )
{
    new 
iPlayer32 ], iNumiCount;
    
get_playersiPlayeriNum )
    
    for( new 
iiNumi++ )
    {
        if( 
NativeofZombie) )
        {
            
iCount++;
        }
    }
    
    return 
iCount;


I DON'T KNOW HOW TO DO IT
Explain more if you want and its like multi infection
ALonsoVIP4141 is offline
Send a message via ICQ to ALonsoVIP4141 Send a message via AIM to ALonsoVIP4141 Send a message via Yahoo to ALonsoVIP4141 Send a message via Skype™ to ALonsoVIP4141
lexzor
Veteran Member
Join Date: Nov 2020
Old 06-15-2022 , 19:11   Re: Zombie Count
Reply With Quote #4

Quote:
Originally Posted by Supremache View Post
Try to create custom stock like this:
PHP Code:
GetZombieNum( )
{
    new 
iPlayer32 ], iNumiCount;
    
get_playersiPlayeriNum )
    
    for( new 
iiNumi++ )
    {
        if( 
NativeofZombie) )
        {
            
iCount++;
        }
    }
    
    return 
iCount;

i don t think someone could explain more than that. if that is a request, post it in the specific forum
lexzor is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-16-2022 , 09:06   Re: Zombie Count
Reply With Quote #5

There is already exists natives in that mod
Quote:
/**
* Returns number of alive zombies.
*
* @return Zombie count.
*/
native zp_get_zombie_count()

/**
* Returns number of alive humans.
*
* @return Human count.
*/
native zp_get_human_count()

/**
* Returns number of alive nemesis.
*
* @return Nemesis count.
*/
native zp_get_nemesis_count()

/**
* Returns number of alive survivors.
*
* @return Survivor count.
*/
native zp_get_survivor_count()
PHP Code:
client_print0print_chat"Zombie: %i | Human: %i | Nemesis: %i | Survivor: %i"zp_get_zombie_count( ), zp_get_human_count( ), zp_get_nemesis_count( ), zp_get_survivor_count( ) ) 
Also if you want to do it using custom stock try this
PHP Code:
GetZombieCount( )
{
    new 
iPlayer32 ], iNumiCount;
    
get_playersiPlayeriNum )
    
    for( new 
iiNumi++ )
    {
        if( 
zp_get_user_zombie) ) // Is user zombie
        
{
            
iCount++;
        }
    }
    
    return 
iCount// Returns the number called from the loop

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 06-16-2022 at 09:10.
Supremache is offline
ALonsoVIP4141
BANNED
Join Date: May 2021
Location: https://t.me/pump_upp
Old 06-16-2022 , 10:54   Re: Zombie Count
Reply With Quote #6

Quote:
Originally Posted by lexzor View Post
i don t think someone could explain more than that. if that is a request, post it in the specific forum
I Just learner in zp 50 and i don't know where to put this code this is it
ALonsoVIP4141 is offline
Send a message via ICQ to ALonsoVIP4141 Send a message via AIM to ALonsoVIP4141 Send a message via Yahoo to ALonsoVIP4141 Send a message via Skype™ to ALonsoVIP4141
Old 06-17-2022, 17:08
ALonsoVIP4141
This message has been deleted by ALonsoVIP4141.
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 10:16.


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