AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [Biohazard] Anticamp (https://forums.alliedmods.net/showthread.php?t=172822)

VaSaKed 11-26-2011 11:33

[Biohazard] Anticamp
 
2 Attachment(s)
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

INTEL-XTREME 12-25-2011 03:20

Re: [Biohazard] Anticamp
 
Test?

VaSaKed 01-03-2012 05:16

Re: [Biohazard] Anticamp
 
It works fine

eskemo 01-03-2012 06:20

Re: [Biohazard] Anticamp
 
This is a very good idea, If it isnt for ZP already maybe do so aswell. :)

Isaac999 01-07-2012 03:20

Re: [Biohazard] Anticamp
 
Quote:

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

You can request it in zp forum :up:

eforie 01-07-2012 15:07

Re: [Biohazard] Anticamp
 
good job, we love when someone makes plugin for biohazard mod.

VaSaKed 01-08-2012 14:26

Re: [Biohazard] Anticamp
 
TY :D
I hope i will make some good plugins for bh

H.RED.ZONE 01-08-2012 16:47

Re: [Biohazard] Anticamp
 
1 Attachment(s)
Quote:

Originally Posted by eskemo (Post 1624337)
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)
    



Reljaaa 07-13-2018 17:52

Re: [Biohazard] Anticamp
 
I will test the plugin,it seems cool. :)

Boshkovski 12-11-2019 15:02

Re: [Biohazard] Anticamp
 
How much time is required for zombies die?


All times are GMT -4. The time now is 09:17.

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