Need code for disble grenade in some map

Newbie Spellweaver
Joined
May 7, 2019
Messages
6
Reaction score
0
Hello ! Who can help me to disble grenade in some map I need to code

Thank you so much
 
AIPlayer.cpp

Search:

if (hudMain) hudMain->showMessage(gLangMngr.getString("InfoMsg_NotBeUsedHere"));

add above this fonc.

if(wpn->getItemID() == WeaponConfig::ITEMID_FragGrenade) //CodeX:: Bomba
{
if(gClientLogic().m_gameInfo.mapId==GBGameInfo::MAPID_WZ_Trade_Map
|| gClientLogic().m_gameInfo.mapId==GBGameInfo::MAPID_WZ_SafePVP
|| gClientLogic().m_gameInfo.mapId==GBGameInfo::MAPID_WZ_Smallview
|| gClientLogic().m_gameInfo.mapId==GBGameInfo::MAPID_wo_inferno)
{
if(hudMain) hudMain->showMessage(gLangMngr.getString("BU HARITADA KULLANILMAZ!"));
return;
}
}
 
Upvote 0
Back