Jump to content

C4 Bug / Error


NemeSyS17

Recommended Posts

Server : furienwatf.rangfot.ro

Nick : NemeSyS
Grad server : Fondator
La ce doriţi ajutor? : Vreau ca T sa poata planata C4 in ultimele 60 sec , la mine pe srever planteaza plyeric and vor !

Poză cu problema (Nu este obligatoriu) : _-

 

Link to comment
Share on other sites

Si unde-i bugul ? vezi cum ai setat in server.cfg sau incearca asta si spune-mi daca merge :

 

#include <amxmodx> 
    #include <hamsandwich> 
    #include <fakemeta> 
 
    #define PLUGIN                 "Bomb Time Set" 
    #define VERSION             "1.0" 
    #define AUTHOR                 "rangfort.com" 
 
    #define TASK_CANPLANT            10001 
 
    new bool: g_bCanPlant; 
 
    public plugin_init()  
    { 
        register_plugin( PLUGIN, VERSION, AUTHOR ); 
         
        register_event( "HLTV", "ev_RoundStart", "a", "1=0", "2=0" ); 
        register_event( "TextMsg", "ev_BombMsg", "b", "2=#C4_Plant_At_Bomb_Spot" ); 
         
        RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_c4", "ham_PrimaryAttack_C4" ); 
    } 
 
    public ev_RoundStart() 
    { 
        g_bCanPlant = false; 
        remove_task( TASK_CANPLANT ); 
         
        new Float: flTime = get_cvar_num( "mp_freezetime" ) + ( get_cvar_num( "mp_roundtime" ) * 60 ) - 60.0; 
        set_task( flTime, "task_CanPlant", TASK_CANPLANT ); 
    } 
 
    public ham_PrimaryAttack_C4( iEnt ) 
    { 
        new id = pev( iEnt, pev_owner ); 
         
        if( !g_bCanPlant ) 
        { 
            client_print( id, print_center, "[RANGFORT] Nu poti planta bomba decat in ultimele 60 secunde!" ); 
            return HAM_SUPERCEDE; 
        } 
         
        return HAM_IGNORED; 
    } 
 
    public ev_BombMsg( id ) 
    { 
        if( !g_bCanPlant ) 
        client_print( id, print_center, "" ); 
    } 
 
    public task_CanPlant() 
    { 
        g_bCanPlant = true; 
         
        set_hudmessage( 255, 0, 0, -1.0, 0.35, 1, 0.01, 3.0, 1.0, 1.0 ); 
         
        new iNum, iPlayers[ 32 ]; 
        get_players( iPlayers, iNum, "ae", "TERRORIST" ); 
         
        for( new i ; i < iNum ; i ++ ) 
            show_hudmessage( iPlayers[ i ], "[RANGFORT] Mai sunt 60 secunde, Bomba poate fi acum plantata!" ); 
    }
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...