It is currently 22 Feb 2019 20:28



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 1, 2  Next
 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
Plugin Cerut: ptb
Descriere (adica ce face el mai exact): vreau un ptb pentru un server de respawn cand te muna la celalata echipa sa scrie in HUD Ai fost mutata la ....
Serverul ruleaza (HLDS/ReHLDS): ReHLDS
Versiune AMX Mod X: 1.8.3
Modul Serverului: RESPAWN

_________________
Image


Last edited by Rainq on 16 Jan 2019 00:42, edited 1 time in total.

Editat dupa model



15 Jan 2019 19:51
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
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
iei ptb de pe net,și editezi în .cfg afișarea mesajelor în hud


15 Jan 2019 22:56
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0
User avatar

Joined: 14 Sep 2018 22:35
Posts: 74
Location: Timisoara
Detinator Steam: Da
CS Status: Sniper & Rifler
Fond eXtream: 0
ptb n-o sa-i mearga pe sv de respawn deoarece el balanseaza echipele la sfarsitul rundei, la respawn runda e infinita.
incearca asta
https://forums.alliedmods.net/showthread.php?t=237118

_________________
maybe there are no goodbyes..


16 Jan 2019 02:30
Profile multumesc
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
Code:
#include < amxmodx >
#include < cstrike >

#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 );
   }
   
   set_hudmessage ( 255, 85, 0, 0.01, 0.26, 0, 6.0, 7.0 );
   show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")
   
   //client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}



Eu am acest plugin si merge perfect dar nu te anunta cand te muta la cealalta echipa daca ma puteti ajuta

_________________
Image


16 Jan 2019 07:25
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 14 Sep 2018 22:35
Posts: 74
Location: Timisoara
Detinator Steam: Da
CS Status: Sniper & Rifler
Fond eXtream: 0
incearca sa inlocuiesti i_Player cu id

_________________
maybe there are no goodbyes..


16 Jan 2019 16:22
Profile multumesc
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
cineva care ma poate ajuta? mai concret

_________________
Image


16 Jan 2019 17:33
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 14 Sep 2018 22:35
Posts: 74
Location: Timisoara
Detinator Steam: Da
CS Status: Sniper & Rifler
Fond eXtream: 0
ce concret? nu stii sa inlocuiesti
Code:
show_hudmessage (id, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")

_________________
maybe there are no goodbyes..


16 Jan 2019 18:27
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
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
goeslegendary wrote:
ptb n-o sa-i mearga pe sv de respawn deoarece el balanseaza echipele la sfarsitul rundei, la respawn runda e infinita.
incearca asta
https://forums.alliedmods.net/showthread.php?t=237118

el a precizat că vrea ptb,cu mesaje în hud,iar de mers,îi va merge,dacă nu mergea,era precizat în postul oficial

floringold01 wrote:
Code:
#include < amxmodx >
#include < cstrike >

#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 );
   }
   
   set_hudmessage ( 255, 85, 0, 0.01, 0.26, 0, 6.0, 7.0 );
   show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")
   
   //client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}



Eu am acest plugin si merge perfect dar nu te anunta cand te muta la cealalta echipa daca ma puteti ajuta


are mesaj în hud


Last edited by L E V I N on 19 Jan 2019 23:53, edited 1 time in total.



16 Jan 2019 22:43
Profile multumesc ICQ YIM
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
Code:
#include < amxmodx >
#include < cstrike >

#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 );
   }
   
   set_hudmessage ( 255, 85, 0, 0.01, 0.26, 0, 6.0, 7.0 );
   show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")
   
   //client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}


Problema este ca apare acest mesaj
Code:
show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")

Dar dispare foarte repede cum fac sa stea 5-6sec mesajul?

_________________
Image


19 Jan 2019 20:51
Profile multumesc WWW
Moderator
Moderator
User avatar

Joined: 17 Dec 2013 19:51
Posts: 722
Location: New Orleans
Detinator Steam: Da
SteamID: /id/csall
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Fond eXtream: 0
Vezi acum.
| Afiseaza codul
#include < amxmodx >
#include < cstrike >

#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 );
}

set_task(5.0,"",0,"",0,"b",0)
set_hudmessage ( 255, 85, 0, 0.01, 0.26, 0, 6.0, 7.0 );
show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")

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

_________________
[EXCHANGE] PaySafeCard => PayPal


19 Jan 2019 21:12
Profile multumesc
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
Tot asa repede apare nu se poate aparea in chat?
Code:
#include < amxmodx >
#include < cstrike >

#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 );
   }
   
   set_hudmessage ( 255, 85, 0, 0.01, 0.26, 0, 6.0, 7.0 );
   show_hudmessage ( i_Player, "Ai fost transferat la cealalalta echipa^npentru a echilibra jocul.")
   
   //client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}

_________________
Image


27 Jan 2019 09:46
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
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
Code:
#include < amxmodx >
#include < cstrike >

#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 );
   }
   
   client_print ( i_Player, print_chat, "Ai fost transferat la cealalalta echipa pentru a echilibra jocul." );
}


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

Who is online

Users browsing this forum: iriminescu0132 and 79 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