Raised This Month: $ Target: $400
 0% 

[REQ] Fake Team Bot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 10-01-2007 , 11:33   [REQ] Fake Team Bot
Reply With Quote #1

Hi,
Just wondering if somebody could help me add additional coding to this plugin so that when 4 people join server the bots will be removed...
thanks in advance

here is the code:

Code:
#include <amxmodx> #include <fakemeta> #include <cstrike> new botteam[3] static const botnames[3][] = {     "NULL",     "Terrorist Team",           //Change Terrorist Bot Name     "Counter-Terrorist Team"    //Change CT Bot name     } public plugin_init() {     register_plugin("Fake TeamBot", "1.0", "OneEyed")     register_event("HLTV","StartRound","a","1=0","2=0")     createBots() } public StartRound()     set_task(0.5, "PostStartRound", 0) public PostStartRound()     for(new x=1; x<3; x++) {         set_pev(botteam[x], pev_effects, (pev(botteam[x], pev_effects) | 128) ) //set invisible         set_pev(botteam[x], pev_solid, 0)       //Not Solid     } createBots() {     new bot, x     for(x = 1; x<3; x++)     {         //is bot in server already?         bot = find_player("bli", botnames[x] )         if(bot) {             botteam[x] = bot             continue         }                 //bot not in server, create them.         bot = engfunc(EngFunc_CreateFakeClient, botnames[x])         botteam[x] = bot         new ptr[128]         dllfunc(DLLFunc_ClientConnect, bot, botnames[x], "127.0.0.1", ptr )         dllfunc(DLLFunc_ClientPutInServer, bot)         select_model(bot, x)     } } select_model(id,team)     switch(team) {         case 1: cs_set_user_team(id, CS_TEAM_T, CS_T_TERROR)         case 2: cs_set_user_team(id, CS_TEAM_CT, CS_CT_URBAN)     }

Again help greatly appreciated
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
 



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 16:05.


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