Raised This Month: $ Target: $400
 0% 

Invisability to bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-16-2011 , 00:08   Re: Invisability to bots
Reply With Quote #1

Question about add to full pack

When i tested using some client_prints

In a server with bots.. using if(!player) return 0; will only use the humans as "host"??

but "ent" can still be the bots correct??

thats what it seemed like.

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

public plugin_init()
{
    
register_plugin("test""0.0.1""SavSin");
    
    
register_forward(FM_AddToFullPack"fwdAddToFullPack"1);
}

public 
fwdAddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
    if(!
player)
        return 
FMRES_IGNORED;

    new 
szHost[32], szEnt[32];
    
get_user_name(hostszHostsizeof(szHost));
    
get_user_name(entszEntsizeof(szEnt));

    
client_print(0print_chat"DEBUG :: This is the host %s"szHost);
    
client_print(0print_chat"DEBUG :: This is the ent %s"szEnt);

    return 
FMRES_IGNORED;

Doc-Holiday 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 00:48.


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