REGISTER











Amx AutoRestart
#1
Acest plugin restarteaza jocul dupa prima runda.
Apare un mesaj chat de asemenea.

SMA file:
Code:
#include < amxmodx >

#define PLUGIN "New Plug-In"
#define VERSION "1.3"
#define AUTHOR "Evanescence"

new bool: g_Data = false;
new g_Count = 0;

public plugin_init( ) {
    register_plugin( PLUGIN, VERSION, AUTHOR );
    
    register_event( "TextMsg", "game_commencing", "a", "2&#Game_C" );
    register_event( "HLTV", "new_round", "a", "1=0", "2=0" );
}

public game_commencing( )
    g_Data = true;

public new_round( ) {
    if( g_Data == true )
        g_Count++;
    
    if( g_Count == 2 ) {
    server_cmd( "sv_restart 3" );
    client_print(0, print_chat,  "--- RUNDA RESTARTATA BY FASTCS ---")
    client_print(0, print_chat,  "--- RUNDA RESTARTATA BY FASTCS ---")
    client_print(0, print_chat,  "--- RUNDA RESTARTATA BY FASTCS ---")
    client_print(0, print_chat,  "--- RUNDA RESTARTATA BY FASTCS ---")
    
set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0)
    show_hudmessage(0, "Live ! FastCs ! www.fastcs.ro ! GL & HF !" )
    show_hudmessage(0, "Live ! FastCs ! www.fastcs.ro ! GL & HF !" )
    show_hudmessage(0, "Live ! FastCs ! www.fastcs.ro ! GL & HF !" )
    show_hudmessage(0, "Live ! FastCs ! www.fastcs.ro ! GL & HF !" )
    show_hudmessage(0, "Live ! FastCs ! www.fastcs.ro ! GL & HF !" )

    }
    
    return PLUGIN_CONTINUE;
}
#2
foarte bun plugin
#3
Topic Closed ! Avem un model de respectat !



Powered by MyBB All rights reserved
Developed with for FASTCS 2011 - 2024 FASTCS