Post: [SPRX]Non Host End Game Function
02-08-2016, 02:30 PM #1
BoatyMcBoatFace
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({});
Hi, Not sure if this was posted anywhere.

I'm expecting a lot of hate from this... so go ahead Dave

Thanks to Adrian for his c# tool source Dave


    string convertInt(int number)
{
if (number == 0)
return "0";
string temp = "";
string returnvalue = "";
while (number>0)
{
temp += number % 10 + 48;
number /= 10;
}
for (int i = 0; i<temp.length(); i++)
returnvalue += temp[temp.length() - i - 1];
return returnvalue;
}

void Endgame()
{
int num;
num = PS3::ReadInt32(0xF109E8 + 0x13B4);
const char *EndGtext;
const char *a = "cmd mr ";
const char *c = " 3 endround";
string Var = a+convertInt(num)+c;
EndGtext = Var.c_str();
Funcs::Cbuf_AddText(EndGtext);
return;
}


if you dont know how to use, please stop

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

V3non, VenoxCoding
02-08-2016, 03:20 PM #2
Swaqq
Professional Thanker
what are you doing? rip

    
void EndGame()
{
char buf[100];
sprintf(buf, "cmd mr 3 %i endround", *(int*)(0xF109E8 + 0x13B4));
Cbuf_AddText(buf);
}

The following 4 users say thank you to Swaqq for this useful post:

MemoryPointers, John, ParadoxSPRX, VenoxCoding
02-08-2016, 04:32 PM #3
Originally posted by Liammmm View Post
Hi, Not sure if this was posted anywhere.

I'm expecting a lot of hate from this... so go ahead Dave

Thanks to Adrian for his c# tool source Dave


    string convertInt(int number)
{
if (number == 0)
return "0";
string temp = "";
string returnvalue = "";
while (number>0)
{
temp += number % 10 + 48;
number /= 10;
}
for (int i = 0; i<temp.length(); i++)
returnvalue += temp[temp.length() - i - 1];
return returnvalue;
}

void Endgame()
{
int num;
num = PS3::ReadInt32(0xF109E8 + 0x13B4);
const char *EndGtext;
const char *a = "cmd mr ";
const char *c = " 3 endround";
string Var = a+convertInt(num)+c;
EndGtext = Var.c_str();
Funcs::Cbuf_AddText(EndGtext);
return;
}


if you dont know how to use, please stop


That's not for sprx. And there's a lot of unneeded stuff there as well.

The following user thanked John for this useful post:

gοd
02-08-2016, 05:19 PM #4
BoatyMcBoatFace
Are you high?
Originally posted by Swaqq View Post
what are you doing? rip

    
void EndGame()
{
char buf[100];
sprintf(buf, "cmd mr 3 %i endround", *(int*)(0xF109E8 + 0x13B4));
Cbuf_AddText(buf);
}


i just copied how i did it for xbox (cos i was using PCHAR) and i just replaced the address Dave lul
02-08-2016, 05:26 PM #5
Sabotage
Gaming Squad
here it is for xbox with xrpc.

RGH.Call(0x824015E0, 0, "cmd mr " + ReadInt32(0x1298 + 0x82C144C0) + " -1 endround;");

The following user thanked Sabotage for this useful post:

jwm614
02-10-2016, 11:21 AM #6
SC58
Former Staff


I think this is more proper lol

The following 2 users say thank you to SC58 for this useful post:

BullyWiiPlaza, xK ELITE GaminG

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo