Cerere FaKe Spect !

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
WISHEXEC
Membru, skill +4
Membru, skill +4
Posts: 1668
Joined: 12 Nov 2011, 19:37
Detinator Steam: Da
CS Status: AmxModX
Detinator server CS: ENIGMAPLAY.RO
Reputatie: Fost Moderator ajutator
Nume anterior : ONEMDX
Location: România
Has thanked: 84 times
Been thanked: 84 times
Contact:

29 Jul 2012, 11:17

Salut vreau si eu un plugin de fake spect ...

de exemplu am un server de 24 sloturi ...
sa pot adauga un nr de boti spect ... care sa nu dispara daca se schimba harta .... si cand nu mai e loc pe server ... sa iasa botu si sa intre playerul ... iar dupa ce iese playerul si se face loc sa intre iar botul

Multumesc !
Aen
krystann
Membru eXtream
Membru eXtream
Posts: 2552
Joined: 16 May 2009, 10:37
Detinator Steam: Nu
CS Status: Vine criza!
Reputatie: Fost moderator
Has thanked: 321 times
Been thanked: 141 times

29 Jul 2012, 12:04

| Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <cstrike>

#define PLUGIN "Spec Bots"
#define VERSION "1.0"

new g_pEnable;
new g_pBotName;
new g_pMaxPlayers;
new g_pEnable2;
new g_pBotName2;
new g_pMaxPlayers2;
new g_pEnable3;
new g_pBotName3;
new g_pMaxPlayers3;

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   
   g_pEnable = register_cvar("bw_enable", "1");
   g_pBotName = register_cvar("bw_botname", "Fake");
   g_pMaxPlayers = register_cvar("bw_maxplayers", "22");
   g_pEnable2 = register_cvar("bw_enable2", "1");
   g_pBotName2 = register_cvar("bw_botname2", "FakeDaFake");
   g_pMaxPlayers2 = register_cvar("bw_maxplayers2", "22");
   g_pEnable3 = register_cvar("bw_enable3", "1");
   g_pBotName3 = register_cvar("bw_botname3", "UltraFake");
   g_pMaxPlayers3 = register_cvar("bw_maxplayers3", "22");
   
   if( get_pcvar_num(g_pEnable) )
   {
      set_task( 5.0, "CreateBot" );
   }
   if( get_pcvar_num(g_pEnable2) )
   {
      set_task( 10.0, "CreateBot" );
   }
   if( get_pcvar_num(g_pEnable3) )
   {
      set_task( 15.0, "CreateBot" );
   }
}

public client_connect(id)
{
   if( get_playersnum() >= get_pcvar_num(g_pMaxPlayers) )
   {
      new szBotName[33];
      get_pcvar_string(g_pBotName, szBotName, 32);
      server_cmd("kick ^"%s^"", szBotName);
   }
   if( get_playersnum() >= get_pcvar_num(g_pMaxPlayers2) )
   {
      new szBotName[33];
      get_pcvar_string(g_pBotName2, szBotName, 32);
      server_cmd("kick ^"%s^"", szBotName);
   }
   if( get_playersnum() >= get_pcvar_num(g_pMaxPlayers3) )
   {
      new szBotName[33];
      get_pcvar_string(g_pBotName3, szBotName, 32);
      server_cmd("kick ^"%s^"", szBotName);
   }
}

public CreateBot()
{
   new szBotName[33];
   get_pcvar_string(g_pBotName, szBotName, 32);
   get_pcvar_string(g_pBotName2, szBotName, 32);
   get_pcvar_string(g_pBotName3, szBotName, 32);
            
   new id = engfunc(EngFunc_CreateFakeClient, szBotName);
   engfunc(EngFunc_FreeEntPrivateData, id);
   set_pev(id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT);
            
   new szMsg[128];
   dllfunc(DLLFunc_ClientConnect, id, szBotName, "127.0.0.1","127.0.0.2","127.0.0.3", szMsg);
   dllfunc(DLLFunc_ClientPutInServer, id);
}
User avatar
Andrei.B
Fost administrator
Fost administrator
Posts: 6481
Joined: 17 Aug 2009, 08:15
Detinator Steam: Da
CS Status: Plecat pe mari si tari
Detinator server CS: Nu detin !
SteamID: andreybci94
Reputatie: Fost Membru Club eXtreamCS (o luna)
Fost Administrator
Nume anterior : bLack, Andrei,krusc
Contribuitor
Location: ConstanTa
Has thanked: 275 times
Been thanked: 556 times
Contact:

29 Jul 2012, 12:49


Mereu in suflet culorile ( Roş -Albastru )
Image
ImageImage
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests