BombObj_Checker is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Furiens; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Changelog:
V 0.1: + Initial Release. V 0.2: + Fixed some silly mistakes */
//is camping ? if( bSameOrigins[ g_iCarrierId ] ) { //The player with the bomb is in buyzone ? if( get_pdata_int( g_iCarrierId, m_fMapZone, XO_PLAYER ) & MAPZONE_BUY ) { //player is camping on buyzone g_iCampSeconds[ BUYZONE_CAMP ] ++ if( g_iCampSeconds[ BUYZONE_CAMP ] > g_iCachedCvars[ cvar_BuyCamp ] ) { UTIL_PunishUser( g_iCarrierId, 0 ) g_iCampSeconds[ BUYZONE_CAMP ] = 0 } }
//he is not camping in buy zone, go to next check else { if( get_pdata_int( g_iCarrierId, m_fMapZone, XO_PLAYER ) & MAPZONE_BOMB ) { if( !g_bPlanting ) { //player is camping in bombsite and he is not planting the bomb g_iCampSeconds[ BOMBZONE_CAMP ] ++
else { for( new i; i < sizeof( g_iCampSeconds ); i++ ) { g_iCampSeconds[ i ] = 0 } }
for( new i; i < 3; i ++ ) { //Save the old origins, so we can compare g_fCarrierOldOrigin[ i ] = g_fCarrierOrigin[ i ] } } }
public CBasePlayer_AddPlayerItem( id, iWeapon ) { new iId = cs_get_weapon_id( iWeapon )
if( iId == CSW_C4 ) { if( FBitGet( bs_shouldnot_receive, id ) ) { UTIL_GiveBombToOtherPlayer( id ) }
else { /* | This will be triggered when a player receive a C4 | I think that it's better to just save player id instead | of checking every time if the given player has the bomb */ g_iCarrierId = id
/* | Someone just picked up the bomb | So the round will not be lost due to bomb drop */ if( g_bThrowed ) { g_bThrowed = false g_iDropperId = 0 } } } }
public CBasePlayer_Spawn( id ) { if( is_user_alive( id ) ) { if( FBitGet( bs_should_slay, id ) ) { UTIL_SlayUser( id, get_user_userid( id ) ) FBitClear( bs_should_slay, id ) g_iDropperId = 0 }
else { FBitSet( bs_is_alive, id ) } } }
public CBasePlayer_Killed( id ) { FBitClear( bs_is_alive, id ) } public CBasePlayer_ItemHolster ( iEnt ) { /* | I already hooked BarTime event for detecting when | bomb planting is canceled, but it can be easy hacked | by switching weapons, so here is the fix */ g_bPlanting = false }
public Event_BombPlantingCanceled ( ) { g_bPlanting = false }
public Event_CounterTerroristsWin( ) { if( g_bThrowed ) { //the round had been lost due to bomb drop g_bThrowed = false UTIL_PunishUser( g_iDropperId, 3 ) } }
public Event_NewRound( ) { UTIL_CacheCvars( )
for( new i; i < 3; i++ ) { g_iCampSeconds[ i ] = 0 }
Can u change the c4 bomb to HE Grenade
say /dajhe
[HE] You D'ont have enouph money %money
must have 16000$
[HE] You Bought HE Grenade %money 0$
ok bro Pls help me