Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [REQ] Turn all bots into zombies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 01-28-2014 , 11:10   [REQ] Turn all bots into zombies
Reply With Quote #1

can this be done? please
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-28-2014 , 11:50   Re: [REQ] Turn all bots into zombies
Reply With Quote #2

on what game mode ?? normal infection ?
__________________
You will find everything u need :-
Catastrophe is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 01-30-2014 , 18:45   Re: [REQ] Turn all bots into zombies
Reply With Quote #3

yes, i just want all my bots turn into zombies in order to play with my friends agains them all the time (:
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-31-2014 , 00:35   Re: [REQ] Turn all bots into zombies
Reply With Quote #4

Try this......
PHP Code:
#include <amxmodx>
#include <zp50_core>
#include <zp50_gamemodes>

public plugin_init()
{
       
register_plugin("Addon: Bots => Zombies""1.0""Catastrophe")
}

public 
zp_fw_core_infect_pre(idinfector)
{
       if(!
is_user_alive(id))
       return

       if(
zp_gamemodes_get_current() != zp_gamemodes_get_id("Infection Mode"))
       return

       
zp_core_cure(id)

       for(new 
1<= get_maxplayers(); i++)
       {
           if(
is_user_bot(i))
           {
           
zp_core_infect(i)
           }
       }

__________________
You will find everything u need :-
Catastrophe is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-31-2014 , 15:51   Re: [REQ] Turn all bots into zombies
Reply With Quote #5

Next time mention for which zombie plague version...
Torge is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 02-02-2014 , 15:43   Re: [REQ] Turn all bots into zombies
Reply With Quote #6

I am sorry, you are right..., I am using zp 4.3 :/, thanks Catastrophe, sadly for me I am using last version of 4.3, because I can use all my very old plugins (:
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 02-03-2014 , 00:50   Re: [REQ] Turn all bots into zombies
Reply With Quote #7

Nope then i cant help sorry..... maybe ask sm1 to convert my plugin to zp43....

BTW: fyi all zp43 plugins work for zp50 ..... ;)
__________________
You will find everything u need :-

Last edited by Catastrophe; 02-03-2014 at 00:51.
Catastrophe is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 02-03-2014 , 07:27   Re: [REQ] Turn all bots into zombies
Reply With Quote #8

Someone called for me?

PHP Code:
#include <amxmodx>
#include <zombieplague>

new g_iMaxPlayers;

public 
plugin_init()
{
    
register_plugin("[ZP] Turn Bots Into Zombies""1.0""Justin");
    
    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
    
g_iMaxPlayers get_maxplayers();
}

public 
event_round_start()
{
    for(new 
id 1id <= g_iMaxPlayersid++)
    {
        if(!
is_user_alive(id))
            continue;
            
        if(
is_user_bot(id))
            
zp_infect_user(id);
    }


Last edited by Torge; 02-03-2014 at 07:33.
Torge is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 02-03-2014 , 09:00   Re: [REQ] Turn all bots into zombies
Reply With Quote #9

Dude use delay otherwise infecting rit on round stary may cause server crash ... also check for normal infection mode so that he can play other game modes too .... look at my code it'll help u ...
__________________
You will find everything u need :-
Catastrophe is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 02-03-2014 , 12:00   Re: [REQ] Turn all bots into zombies
Reply With Quote #10

Quote:
Originally Posted by Catastrophe View Post
Dude use delay otherwise infecting rit on round stary may cause server crash ... also check for normal infection mode so that he can play other game modes too .... look at my code it'll help u ...
I don't need to look at your code.
If you don't like my code then just don't talk about my code, aight?
Torge 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 15:04.


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