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; } } }



Reply With Quote

