User
Pass
2FA
 
 

Cerere Plugin + Sma de MIX / WAR

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message3213
p1ticus

[Mentally Stable]



Status: Offline
(since 10-03-2019 21:18)
Joined: 24 Mar 2016
Posts: 26, Topics: 7
Location: Romania

Reputation: 23.6
Votes: 2

Post Posted: 29-03-2016, 20:25:15 | Translate post to: ... (Click for more languages)

Salut, sunt tot eu!
As dori un plugin si sma ca sa imi fac un server de MIX/WAR
Ma Poate Ajuta Cineva cu un plugin si un sma ?
Sa modifice reclamele daca sunt in "GOSTRIKE" (SCZ DE RECLAMA)


PLUGINUL SA CONTINA:
1)Runda de lame ( /lame )
2)Warm ( /warm )
3)Sa arate scorul ( /score )
4)Sa pot inchide si sa deschid chatul ( /off ; /on )
5)La 15 runde sa se schimbe echipele automat si la 30 de runde sa se termine mixul

PE LANGA MAI VREAU:

Un amx_who cu grade de mix


PS : As dori sa fie cu /mixmenu !

0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 31-03-2016, 09:11:51 | Translate post to: ... (Click for more languages)

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

new g_Warm = 0;
new g_ON = 0;
new g_Count = 0;
new g_rCount = 0;
new g_Knives = 0;
new g_Starting = 0;
new g_Rounds = 0;
new g_Changed = 0;
new g_tT = 0;
new g_tCT = 0;

public plugin_init()
{
   register_plugin( "match_system", "0.1", "compaq" );

   register_event( "CurWeapon", "Current_Weapon", "be", "1=1", "2!29" );
   register_event( "HLTV", "round_start", "a", "1=0", "2=0" );
   register_event( "SendAudio","roundend","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw" );
   register_event( "SendAudio","twin","a","2=%!MRAD_terwin" );
   register_event( "SendAudio","ctwin","a","2=%!MRAD_ctwin" );

   register_clcmd( "say /warm", "cmdWarm", ADMIN_KICK );
   register_clcmd( "say /lame", "cmdKnives", ADMIN_KICK );
   register_clcmd( "say /ready", "cmdReady", ADMIN_KICK );
   register_clcmd( "say /pause", "cmdPause", ADMIN_KICK );
   register_clcmd( "say /unpause", "cmdUPause", ADMIN_KICK );
   register_clcmd( "say /start", "cmdStart", ADMIN_KICK );
   register_clcmd( "say /password", "cmdP", ADMIN_KICK );
   register_clcmd( "say /unpassword", "cmdUP", ADMIN_KICK );
   register_clcmd( "say /stop", "cmdStop", ADMIN_KICK );
}

public cmdWarm( id )
{
   g_Warm = 1;

   if( g_Warm )
   {
      g_ON = 0;

      set_cvar_string( "mp_friendlyfire", "0" );
      set_cvar_string( "mp_startmoney", "16000" );
      set_task( 120.0, "stopwarm" );
   }
}

public stopwarm()
{
   g_Warm = 0;
}

public cmdKnives( id )
{
   g_Knives = 1;
   set_task( 120.0, "Remove_Knives" );
}

public Current_Weapon( id )
{
   if( g_Knives )
      engclient_cmd( id, "weapon_knife" );
}

public Remove_Knives()
{
   g_Knives = 0;
   server_cmd( "sv_restart 1" );
}

public cmdReady( id )
{
   g_Count++;

   if( g_Count >= get_playersnum( 1 ) )
   {
      client_print( 0, print_chat, "[SYSTEM] Toti playerii sunt pregatiti!" );
   }
}

public cmdPause( id )
{
   server_cmd( "amx_pause 1" );
}

public cmdUPause( id )
{
   server_cmd( "amx_unpause" );
}

public cmdStart( id )
{
   g_Starting = 1;
   g_ON = 1;

   set_cvar_string( "mp_startmoney", "800" );
   set_cvar_string( "mp_roundtime", "2" );
   
   if( g_Starting )
   {
      server_cmd( "sv_restart 1" );
      ++g_rCount;
   
      set_task( 1.5, "restart_again", _, _, _, "b" );
   }

   new iPlayers[ 32 ], iNum, i;
   get_players( iPlayers, iNum );

   for( i = 0; i < iNum; i++ )
   {
      client_cmd( iPlayers[ i ], "record ^"numedemo^"" );
   }

}

public restart_again()
{
   if( g_rCount >= 3 )
   {
      g_Starting = 0;
      g_rCount = 0;
   }

   ++g_rCount;
}

public roundend()
{
   if( g_ON )
   {
      ++g_Rounds;

      if( g_Rounds >= 15 )
      {
         new iPlayers[ 32 ], iNum, i;
         get_players( iPlayers, iNum );

         for( i = 0; i < iNum; i++ )
         {
            new g = iPlayers[ i ];

            switch( cs_get_user_team( g ) )
            {
               case CS_TEAM_T: cs_set_user_team( g, CS_TEAM_CT );
               case CS_TEAM_CT: cs_set_user_team( g, CS_TEAM_T );
               default: return 0;
            }
         }

         g_Changed = 1;
      }
   }

   return PLUGIN_CONTINUE;
}

public round_start()
{
   if( g_Changed )
   {
      g_Starting = 1;

      if( g_Starting )
      {
         server_cmd( "sv_restart 1" );
         ++g_rCount;
   
         set_task( 1.5, "restart_again", _, _, _, "b" );
      }

      g_Changed = 0;
   }

   if( g_Rounds == 12 )
   {
      new iPlayers[ 32 ], iNum, i;
      get_players( iPlayers, iNum );

      for( i = 0; i < iNum; i++ )
      {
         new g = iPlayers[ i ];
         client_print( 0, print_chat, "Balauru cu 7 capete" );
         client_cmd( g, "snapshot" );
         client_cmd( g, "snapshot" );
         client_cmd( g, "toggleconsole" );
         client_cmd( g, "cl_allowdownload" );
         client_cmd( g, "cl_allowupload" );
         // comenzile tale, fara valori
         client_cmd( g, "snapshot" );
      }
   }   
}

public cmdP( id )
{
   new cmd[32], password[128];

       read_argv(0, cmd, 31);
       read_args(password, 127);
       replace(password, 127, cmd, "");
       format(password, 127, "%s", password);

   set_cvar_string( "sv_password", password );

   client_print( id, print_chat, "Password: %s", password );
}

public cmdUP( id )
{
   set_cvar_string( "sv_password", "" );
}

public cmdStop( id )
{
   if( g_tT > g_tCT )
      client_print( 0, print_chat, "T au castigat cu %d - %d", g_tT, g_tCT );
   else if( g_tCT > g_tT )
      client_print( 0, print_chat, "CT au castigat cu %d - %d", g_tCT, g_tT );
   
   g_ON = 0;
   server_cmd( "sv_restart 1" );

   new iPlayers[ 32 ], iNum, i;
   get_players( iPlayers, iNum );

   for( i = 0; i < iNum; i++ )
   {
      new g = iPlayers[ i ];
      client_cmd( g, "stop" );
      client_print( 0, print_chat, "Postati pozele si demourile." );
   }
}

public twin()
{
   g_tT++;
}

public ctwin()
{
   g_tCT++;
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
p1ticus

[Mentally Stable]



Status: Offline
(since 10-03-2019 21:18)
Joined: 24 Mar 2016
Posts: 26, Topics: 7
Location: Romania

Reputation: 23.6
Votes: 2

Post Posted: 31-03-2016, 16:46:02 | Translate post to: ... (Click for more languages)

E bun .sma dar doresc si un ultimate_who cu grade de mix !
0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 31-03-2016, 19:15:26 | Translate post to: ... (Click for more languages)

p1ticus wrote:
E bun .sma dar doresc si un ultimate_who cu grade de mix !

Este sma... Si ultimate_who imi trebuie gradele...
App: Multumesc ca mi-ai facu pluginu nu sti sa zici? Cer T/C. Motiv: Lipsa de respect !

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by destroi112, 26 July 2016 06:41



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 11-01-2025, 08:31:48
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x