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

CZ bot support for "SORS"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thinker
Junior Member
Join Date: Mar 2015
Old 04-27-2015 , 02:32   CZ bot support for "SORS"
Reply With Quote #1

Hello! Someone, please do CZ bot support for this plugin:
Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    register_plugin("Strip On Round Start", "(  .  Y  .  )", "Stewie!");
    RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);
}

public fwdPlayerSpawn(id)
{
    if(is_user_alive(id))
    {
        strip_user_weapons(id);
        //Uncomment below if you want knifes
        give_item(id, "weapon_knife");
    }
}
Need to strip bots weapons (it's for Zombie Plague 5).
Thinker is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 04-27-2015 , 04:09   Re: CZ bot support for "SORS"
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("Strip On Round Start""(  .  Y  .  )""Stewie!");
    
RegisterHam(Ham_Spawn"player""fwdPlayerSpawn"1);
}

public 
fwdPlayerSpawn(id)
{
    if(
is_user_alive(id) && is_user_bot(id))
    {
        
strip_user_weapons(id);
        
//Uncomment below if you want knifes
        
give_item(id"weapon_knife");
    }

BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
bat
Veteran Member
Join Date: Jul 2012
Old 04-27-2015 , 04:38   Re: CZ bot support for "SORS"
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

new g_hamczbots

public plugin_init()
{
    
register_plugin("Strip On Round Start""(  .  Y  .  )""Stewie!");
    
RegisterHam(Ham_Spawn"player""fwdPlayerSpawn"1);
}

public 
client_putinserver(id)
{
       if(
is_user_bot(id))
       {
           if(!
g_hamczbots)
            
set_task(0.1"register_ham_czbots"id)
       }
}

public 
register_ham_czbots(id)
{
        if (
g_hamczbots)
        return;

    
RegisterHamFromEntity(Ham_Spawnid"fwdPlayerSpawn"1)

        
g_hamczbots true
}

public 
fwdPlayerSpawn(id)
{
    if(
is_user_alive(id))
    {
        
strip_user_weapons(id);
        
//Uncomment below if you want knifes
        
give_item(id"weapon_knife");
    }

__________________
bat is offline
Send a message via Skype™ to bat
Thinker
Junior Member
Join Date: Mar 2015
Old 04-27-2015 , 04:58   Re: CZ bot support for "SORS"
Reply With Quote #4

bat, thank you.
Thinker 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 17:40.


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