User
Pass
2FA
 
 

[rezolvat]Modificare Plugin

 
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) -> Counter-Strike: Help zone
Author Message626
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: 17-08-2015, 18:30:33 | Translate post to: ... (Click for more languages)

Puteti sa imi modificati si mie plugin acesta ca boomba sa fie plantata in ultimele 60secunde nu in ultimele 30secunde.
Multumesc


Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN                 "Bomb Time Set"
#define VERSION             "1.0"
#define AUTHOR                 "Freakz"

#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 ) - 30.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, "Nu poti planta bomba decat in ultimele 30 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 ], "Mai sunt 30 secunde, Bomba poate fi plantata!" );
}

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

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 17-08-2015, 18:32:37 | Translate post to: ... (Click for more languages)

Modifici :
Code:

new Float: flTime = get_cvar_num( "mp_freezetime" ) + ( get_cvar_num( "mp_roundtime" ) * 60 ) - 30.0;

----->
Code:

new Float: flTime = get_cvar_num( "mp_freezetime" ) + ( get_cvar_num( "mp_roundtime" ) * 60 ) -  60.0;



Retired from Amxmodx

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: 17-08-2015, 18:33:24 | Translate post to: ... (Click for more languages)

Multumesc.
poti da T/C

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 -P!C@-, 17 August 2015 16:34



 
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) -> Counter-Strike: Help zone  


The time now is 17-05-2025, 21:44:39
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password