Post: How To Non-Host End Game (Tutorial)
06-22-2016, 04:58 PM #1
TheGreenPlanet
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU! In this tutorial I'll be showing you guys how to make a Non-Host end game "function" for every cod. Its extremely easy and therefore great for you noobs out there.

Things we'll need:
    Sv_ServerID And Cbuf_AddText


Open IDA and search for "cmd mr %i %i %s\n" in String view (View->Open Subviews->Strings). Click it, follow the Xref and it'll look something like this:
You must login or register to view this content.
The highlighted part is your Sv_ServerID and the "bl" is cBuf_AddText. Copy the addresses (eg. 0xD25EF0).

Now paste the address for cBuf_AddText into the function bellow:
    opd_s cb = {YOUR CBUF ADDRESS, TOC};
void(*cBuf_Addtext)(int client, char* cmd) = (void(*)(int, char*))&cb;


For the Sv_ServerID address do this:
    char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(YOUR SV_S... ADDRESS), -1, "endround");
cBuf_Addtext(0, buffer);


Have fun trolling PBJT

NOTE: You can do more things than just end the game. You can change team, change class etc just do abit of research and you'll find how.
Credits:
dark scripter, for the official realese of the Sv_ServerID address for BO1
Last edited by TheGreenPlanet ; 06-22-2016 at 07:59 PM.

The following 3 users say thank you to TheGreenPlanet for this useful post:

boutthatlife, dark scripter, lucasaf01

The following 2 users groaned at TheGreenPlanet for this awful post:

KL9, S63
06-23-2016, 01:53 PM #2
thanks for credit
01-22-2018, 12:20 AM #3
kushplant420
Save Point
Originally posted by TheGreenPlanet View Post
Hi NGU! In this tutorial I'll be showing you guys how to make a Non-Host end game "function" for every cod. Its extremely easy and therefore great for you noobs out there.

Things we'll need:
    Sv_ServerID And Cbuf_AddText


Open IDA and search for "cmd mr %i %i %s\n" in String view (View->Open Subviews->Strings). Click it, follow the Xref and it'll look something like this:
You must login or register to view this content.
The highlighted part is your Sv_ServerID and the "bl" is cBuf_AddText. Copy the addresses (eg. 0xD25EF0).

Now paste the address for cBuf_AddText into the function bellow:
    opd_s cb = {YOUR CBUF ADDRESS, TOC};
void(*cBuf_Addtext)(int client, char* cmd) = (void(*)(int, char*))&cb;


For the Sv_ServerID address do this:
    char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(YOUR SV_S... ADDRESS), -1, "endround");
cBuf_Addtext(0, buffer);


Have fun trolling PBJT

NOTE: You can do more things than just end the game. You can change team, change class etc just do abit of research and you'll find how.
Credits:
dark scripter, for the official realese of the Sv_ServerID address for BO1


Hey Ive been trying to create a Non Host end game function for ghosts for a while now, I have the SV_ServerID address and it just doesnt seem to be working :s

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo