Raised This Month: $94 Target: $400
 23% 

[Biohazard] Anticamp


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Arkshine (91)
VaSaKed
Junior Member
Join Date: Nov 2011
Old 11-26-2011 , 12:33   [Biohazard] Anticamp
Reply With Quote #1

Anticamp


Description

This is a subplugin for Biohazard Mod (Biohazard include is required). The main obejctive of zombies is to find and to infect people,
but there are many campers who hide and don't do anything. To punish the campers this plugin will kill all zombies that remain when the round ends.

[IMG]http://img824.**************/img824/2114/neubitmap2.png[/IMG]

CVars
  • ba_showsurvivors - show the survivors in the end.

Modules / Requirements
  • amxmodx
  • biohazard

Changelog current version 1.4

Code:
some lame fixes :D
Attached Files
File Type: sma Get Plugin or Get Source (BIOads_anticamp.sma - 1437 views - 1.6 KB)
File Type: inc biohazard.inc (2.1 KB, 447 views)

Last edited by VaSaKed; 07-17-2014 at 23:44.
VaSaKed is offline
INTEL-XTREME
Senior Member
Join Date: Sep 2009
Location: PERU
Old 12-25-2011 , 04:20   Re: [Biohazard] Anticamp
Reply With Quote #2

Test?
__________________

INTEL-XTREME is offline
VaSaKed
Junior Member
Join Date: Nov 2011
Old 01-03-2012 , 06:16   Re: [Biohazard] Anticamp
Reply With Quote #3

It works fine
__________________
BIOads: Anticamp|
VaSaKed is offline
eskemo
Senior Member
Join Date: Dec 2008
Location: Australia
Old 01-03-2012 , 07:20   Re: [Biohazard] Anticamp
Reply With Quote #4

This is a very good idea, If it isnt for ZP already maybe do so aswell.
__________________


Free Australian FASTDL Server PM ME
eskemo is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 01-07-2012 , 04:20   Re: [Biohazard] Anticamp
Reply With Quote #5

Quote:
Originally Posted by eskemo View Post
This is a very good idea, If it isnt for ZP already maybe do so aswell.
You can request it in zp forum
__________________
Isaac999 is offline
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 01-07-2012 , 16:07   Re: [Biohazard] Anticamp
Reply With Quote #6

good job, we love when someone makes plugin for biohazard mod.
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
VaSaKed
Junior Member
Join Date: Nov 2011
Old 01-08-2012 , 15:26   Re: [Biohazard] Anticamp
Reply With Quote #7

TY
I hope i will make some good plugins for bh
__________________
BIOads: Anticamp|
VaSaKed is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-08-2012 , 17:47   Re: [Biohazard] Anticamp
Reply With Quote #8

Quote:
Originally Posted by eskemo View Post
This is a very good idea, If it isnt for ZP already maybe do so aswell.
Nice plugin (:

If you want it for zp here..this should work
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <zombieplague>

#define PLUGIN "BIOads_anticamp"
#define VERSION "1.4"
#define AUTHOR "VaSaKed"

new cvar_showsurvivors

public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("SendAudio""event_round_end""a""2=%!MRAD_ctwin""2=%!MRAD_rounddraw")
    
cvar_showsurvivorsregister_cvar("ba_showsurvivors""1")
}


public 
event_round_end()
{
    static 
Float:lastDone
    
    
if( get_gametime()-lastDone 10.0 )
        return 
PLUGIN_CONTINUE
    
    
new players[32], survivors[32], zombies[32], playersNumzombNumsurvNumiid
    get_players
(playersplayersNum"a")
    
    for(
i=0i<playersNumi++)
    {
        
id players[i]
        
        switch(
zp_get_user_zombie(id))
        {
            case 
1zombies[zombNum++]   = id
            
case 0survivors[survNum++] = id
        
}
        
    }
    
    for(
i=0i<playersNumi++)
    {
        
id players[i]
        if( 
zp_get_user_zombie(id) && survNum)
        {
            
client_print(idprint_chat"[ZP] Result: You've starved to death!" )
            
user_kill(id1)
        }
    }
    
    if(
get_pcvar_num(cvar_showsurvivors) && zombNum && survNum && survNum 8)
        
show_players(survivors,survNum)
    
    
lastDone get_gametime()
    return 
PLUGIN_CONTINUE
}

public 
show_players(const players[],const playersNum)
{
    new 
inameString[256]
    
    
formatex(nameString256"- Our Survivors -      ^n^n")
    for(
i=0i<playersNum;i++) 
    {
        new 
name[34
        
get_user_name(players[i],name,33)
        if(
!= (playersNum -1)) 
            
strcat(name"^n",33)
        
strcat(nameString,name,256)
    }
    
    
set_hudmessage(1502002551.0, -1.0)
    
show_hudmessage(0nameString)
    

Attached Files
File Type: sma Get Plugin or Get Source (zp_anticamp.sma - 1038 views - 2.0 KB)
__________________

Last edited by H.RED.ZONE; 01-29-2012 at 12:14.
H.RED.ZONE is offline
Reljaaa
New Member
Join Date: Jul 2018
Location: Serbia
Old 07-13-2018 , 18:52   Re: [Biohazard] Anticamp
Reply With Quote #9

I will test the plugin,it seems cool.
Reljaaa is offline
Boshkovski
Junior Member
Join Date: Dec 2019
Old 12-11-2019 , 16:02   Re: [Biohazard] Anticamp
Reply With Quote #10

How much time is required for zombies die?
Boshkovski is offline
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 05:10.


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