how to disable ban by Frag Grenade(101310) -- AllRight ?

Results 1 to 1 of 1
  1. #1
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    how to disable ban by Frag Grenade(101310) -- AllRight ?

    if use Frag Grenade then server kick and ban id

    how to disable auto ban ?

    - - - Updated - - -

    and ban id if you use "101312 --Flare"



    - - - Updated - - -

    i found code

    Code:
    	// check for grenade throw, if successful it will go to normal fire code
    	if(wpn->getCategory() == storecat_GRENADE)
    	{
    		const wiInventoryItem& wi = wpn->getPlayerItem(); 
    		if(!uberAnim_->IsGrenadePinPullActive() && wi.quantity > 0)
    		{
    			if(wpn->isReadyToFire(m_isPressedFireTrigger, m_isFinishedAiming)) 
    			{
    				char chatmessage[128] = {0};
    				gUserProfile.ApiBan();
    				obj_Player* plr = gClientLogic().localPlayer_;
    				PKT_C2C_ChatMessage_s n;
    				n.userFlag = 2; // server will init it for others
    				n.msgChannel = 1;
    				sprintf(chatmessage, "Banned %s From Server : Throw Grenate Anim Bug",plr->CurLoadout.Gamertag);
    				r3dscpy(n.gamertag, "<System>");
    				r3dscpy(n.msg, chatmessage);
    				p2pSendToHost(gClientLogic().localPlayer_, &n, sizeof(n));
    				r3dError("Banned");
    				return;
    			}
    		}
    	}
    Last edited by javaz97; 18-02-14 at 05:28 PM.




Advertisement