Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Problem z kompilacją


  • Zamknięty Temat jest zamknięty
1 odpowiedź w tym temacie

#1 PatykTSW

    Banned

  • Zbanowany

Reputacja: 0
Nowy

  • Postów:2
  • Imię:patryk
  • Lokalizacja:kraków
Offline

Napisano 13.01.2013 02:12

Witam,chcę połączyć dwa pluginy ze sobą.Chodzi mi o plugin który miał by działać tak:po zmianie teamow w say(w say a nie w HUD!!) pisze ze "LIVE PO 3 RESTARTACH" ,3rr i w say pisze "LIVE!Good Luck"

#include 
#include 

public plugin_init()
{
    register_plugin("Restart","0.9","GoToPrO")
    set_task(1.0,"amx_restartgame")
}
public amx_restartgame(id)
{
    set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 1)
    show_hudmessage(0,"Live on Three Restarts")
    
    set_task(3.0, "RestartR")
    set_task(6.0, "RestartR")
    set_task(9.0, "RestartR")
    set_task(11.0, "Message")
    return PLUGIN_HANDLED;
}
public RestartR()
{
    server_cmd("sv_restar 1")
}
public Message()
{
    set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 3)
    show_hudmessage(0,"Live on *SWEAR* Team Play")
}  

#include 
#include 
#include 

#define PLUGIN "Auto Team Switcher"
#define VERSION "1.0"
#define AUTHOR "nikhilgupta345"

#pragma semicolon 1

new roundnumber = 0;
new Atsround;

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    register_clcmd( "say /roundnumber", "sayRound" );
    register_concmd( "amx_roundrestart", "restartnumber", ADMIN_KICK );
    
    register_logevent( "roundend", 2, "1=Round_End" );
    register_event( "TextMsg","restart","a","2&#Game_C", "2&#Game_W" ); // Event for "Game Commencing" TextMsg and "Game Will Restart in X Seconds" TextMsg
    
    Atsround = register_cvar( "amx_atsrounds", "15" );
    
}

public sayRound( id )
{
    client_print( id, print_chat, "The current round is %i.", roundnumber );
    return PLUGIN_HANDLED;
}

public roundend()
{
    roundnumber++;
    
    if( roundnumber >= get_pcvar_num( Atsround ) )
    {
        new players[32], num;
        get_players( players, num );
        
        for( new i; i < num; i++ )
            add_delay( players[i] ); // Prevent Server Crash with a lot of people.
            
    }
}


public restartnumber( id, level, cid )
{
    if( !cmd_access( id, level, cid, 1 ) )
        return PLUGIN_HANDLED;
    
    roundnumber = 0;
    return PLUGIN_HANDLED;
}

public restart( id )
{
    roundnumber = 0;
    return PLUGIN_HANDLED;
}

public changeTeam( id )
{
    switch( cs_get_user_team( id ) )
    {
        case CS_TEAM_CT: cs_set_user_team( id, CS_TEAM_T );
        
        case CS_TEAM_T: cs_set_user_team( id, CS_TEAM_CT );
    }

    roundnumber = 0;
}

add_delay( id )
{
    switch( id )
    {
        case 1..7: set_task( 0.1, "changeTeam", id );
        case 8..15: set_task( 0.2, "changeTeam", id );
        case 16..23: set_task( 0.3, "changeTeam", id );
        case 24..32: set_task( 0.4, "changeTeam", id );
    }
}

Użytkownik PatykTSW edytował ten post 13.01.2013 02:14


#2 Gość_21977_*

  • Gość

Reputacja: 0

Offline

Napisano 17.01.2013 15:49

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Autor tematu zbanowany

Jeśli się z tym nie zgadzasz, Dołączona grafika raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych