Raised This Month: $ Target: $400
 0% 

Solved [REQ] Small Help for PodBot


Post New Thread Reply   
 
Thread Tools Display Modes
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-06-2017 , 12:31   Re: [REQ] Small Help for PodBot
Reply With Quote #11

i mean
example:
i wan't check knife kill bonus plugin with pdobot but bots kill me i wan't i stop bot and i m knife him understand bro??

Last edited by shehzad1234; 02-06-2017 at 12:32.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-06-2017 , 12:47   Re: [REQ] Small Help for PodBot
Reply With Quote #12

open PodBot menu and look for any option for freeze bots.
yas17sin is offline
Send a message via ICQ to yas17sin
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-06-2017 , 12:51   Re: [REQ] Small Help for PodBot
Reply With Quote #13

Something like this ?
Spoiler
__________________
Relaxing is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-06-2017 , 15:19   Re: [REQ] Small Help for PodBot
Reply With Quote #14

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

#define PLUGIN "Freeze Bots"
#define VERSION "1.0"
#define AUTHOR "DoNii"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""fw_HamSpawnPost"1)
}

public 
fw_HamSpawnPost(id) {
    
    if(
is_user_bot(id))
        
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN)

__________________
edon1337 is offline
Old 02-06-2017, 15:29
EFFx
This message has been deleted by EFFx. Reason: nvm
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-06-2017 , 15:37   Re: [REQ] Small Help for PodBot
Reply With Quote #15

Try

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

#define PLUGIN "Freeze Botbots"
#define VERSION "1.0"
#define AUTHOR "author"

new pCvarFreeze

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pCvarFreeze register_cvar("pb_freeze","0")
}
public 
client_PreThink(id)
{
    if(!
is_user_bot(id))
        return
    
    if(
get_pcvar_num(pCvarFreeze))
    {
        if(
pev(idpev_flags) & ~FL_FROZEN)
        {
            
set_pev(idpev_buttonpev(id,pev_button) & ~IN_ATTACK)
            
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN)
        }
    }
    else
    {
        if(
pev(idpev_flags) | FL_FROZEN)
        {
            
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN)
        }
    }

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-06-2017 at 17:30.
EFFx is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-07-2017 , 04:42   Re: [REQ] Small Help for PodBot
Reply With Quote #16

@EFFx Thanks bro its working

but bro when i freeze bot and i kill him then player model showing like this check screen shot bro
i wan't when i kill podbot in freeze then podbot model remove from kill place.

Screen sHot click me

Last edited by shehzad1234; 02-07-2017 at 04:44.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-07-2017 , 05:54   Re: [REQ] Small Help for PodBot
Reply With Quote #17

Have you tried to use on surf maps, flooding freezed bots in mid air.
__________________
Relaxing is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-07-2017 , 07:26   Re: [REQ] Small Help for PodBot
Reply With Quote #18

Quote:
Originally Posted by EFFx View Post
Try

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

#define PLUGIN "Freeze Botbots"
#define VERSION "1.0"
#define AUTHOR "author"

new pCvarFreeze

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pCvarFreeze register_cvar("pb_freeze","0")
}
public 
client_PreThink(id)
{
    if(!
is_user_bot(id))
        return
    
    if(
get_pcvar_num(pCvarFreeze))
    {
        if(
pev(idpev_flags) & ~FL_FROZEN)
        {
            
set_pev(idpev_buttonpev(id,pev_button) & ~IN_ATTACK)
            
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN)
        }
    }
    else
    {
        if(
pev(idpev_flags) | FL_FROZEN)
        {
            
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN)
        }
    }

Using PreThink is a very poor way. My code should work just fine, the FL_FROZEN flag won't be gone until next round I think, so you set it on Ham_Spawn.
__________________
edon1337 is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-07-2017 , 07:39   Re: [REQ] Small Help for PodBot
Reply With Quote #19

Quote:
Originally Posted by edon1337 View Post
Using PreThink is a very poor way. My code should work just fine, the FL_FROZEN flag won't be gone until next round I think, so you set it on Ham_Spawn.
ok bro wait i m testing your code
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-07-2017 , 07:44   Re: [REQ] Small Help for PodBot
Reply With Quote #20

sorry edon1337 i don't want your code
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
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 07:26.


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