It is currently 24 Feb 2019 03:08



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
 Cerere PTB 
Author Message
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
imi da o eroare la compilare...

_________________
Image


27 Jan 2019 16:25
Profile multumesc WWW
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
nu stiu de ce cererea a fost aruncata puteti sau aveti o idee pentru ca acest plugin te muta in cealalta echipa dar de ex esti ct si te muta la t in prima runda arati ca un cei de la ct dupaia urmatoarea runda is revine

_________________
Image


27 Jan 2019 22:01
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1964
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
| Afiseaza codul
Code:
//plg te muta in viata..

#include < amxmodx >
#include < cstrike >

#pragma tabsize 0

#define PLUGIN "CS16 Ballancer"
#define VERSION "0.1"
#define AUTHOR "aNNakin"

new gi_MaxPlayers;

new const gs_Teams[ ][ ] =
{
   "TERRORIST",
   "CT"
};

// - - - - - - - - -
#define   INTERVAL 30   /* din cate in cate secunde se vor verifica echipele */
const i_Immunity = 0;   /* 1 = adminii au imunitate, 0 adminii nu au imunitate */
// - - - - - - - - -

public plugin_init ( )
{
   register_plugin ( PLUGIN, VERSION, AUTHOR );
   gi_MaxPlayers = get_maxplayers ( );
   set_task ( float ( INTERVAL ), "CheckTeams", _, _, _, "b" );
}

public CheckTeams ( )
{
   new i_TsNum = get_team_num ( 1 );
   new i_CTsNum = get_team_num ( 2 );
   
   while ( ( i_TsNum - i_CTsNum ) > 1 )
   {
      i_TsNum--; ++i_CTsNum;
      transfer_user ( 1, 2 );
   }
   
   while ( ( i_TsNum - i_CTsNum ) < -1 )
   {
      i_TsNum++; --i_CTsNum;
      transfer_user ( 2, 1 );
   }
     
}

stock get_team_num ( i_Team )
{
   new i_Count, i_Index;
   
   for ( i_Index = 1; i_Index <= gi_MaxPlayers; i_Index++ )
      if ( get_user_team ( i_Index ) == i_Team )
         i_Count++;
         
   return i_Count;
}

stock transfer_user ( i_From, i_To )
{
   new i_Players[ 32 ], i_Num;
   get_players ( i_Players, i_Num, "ae", gs_Teams[ ( i_From - 1 ) ] )
   
   ChoosePlayer:
   new i_Player = i_Players[ random_num ( 0, i_Num-1 ) ];
   
   if ( ! is_user_alive ( i_Player ) || ( i_Immunity && get_user_flags ( i_Player ) & ADMIN_IMMUNITY ) )
      goto ChoosePlayer;
   
   switch ( i_To )
   {
      case 1: cs_set_user_team ( i_Player, CS_TEAM_T );
      case 2: cs_set_user_team ( i_Player, CS_TEAM_CT );
   }

   cs_reset_user_model(i_Player)
   
   client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}


27 Jan 2019 22:34
Profile multumesc ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Baidu [Spider] and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group