Post: [SPRX] Real Way to call functions
07-27-2014, 11:34 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Real Way to call functions



GSSC:
    
struct tocs {
int32_t gsscof;
int32_t toc;
};

tocs gssscfunc = { 0x34A1DC, 0xD67E98 };
typedef void(*Se***SC)(int client, int type, char* command);

Se***SC GSSC = (Se***SC)(tocs*)&gssscfunc;



Se***SC = S e t G S S C <- ngu sucks Happy
How to use:
    
GSSC(0,0,"O \"This is a test\"");



Or like this ( thx to seb5594)
    
#define TOC ( 0xD67E98 )

#include <sys/types.h>

struct opd_s
{
int32_t sub;
int32_t toc;
};

typedef struct scr_entref_t
{
short entnum;
short classnum;
} scr_entref_t;

void SV_GameSendServerCommand(int, char*);

void SV_GameSendServerCommand(int Client, char* Command)
{
opd_s SV1 = { 0x34A1DC, TOC };
void(*SVGSSC)(int client, int type, char* cmd) = (void(*)(int, int, char*))&SV1;
SVGSSC(Client, 0, Command);
}


and remember the toc is diffrent in any games for bo2 its :0xD67E98
Credits:
Me - making it
seb5594
Shark & Vezah - explaining the toc
Last edited by EnVatoHD ; 07-28-2014 at 11:44 AM.

The following 28 users say thank you to EnVatoHD for this useful post:

B777x, Bad Luck Brian, BaSs_HaXoR, Boliberrys, CrEaTiiOn_420, ErasedDev, iRnZ, iTпDM, ItsLollo1000, KareraHekku, LaRip8, milky4444, Norway-_-1999, John, NotALegitPlayer, Notorious, Obris, OLDSCHOOLMODZHD, ryu_hayabusa80, Shark, Swaqq, TotalModzHD, VezahMoDz, wdegrgefwef, Winter, Fatality, xPAQz, xREVISIONxMoDz
12-09-2014, 09:29 PM #29
Hi, I have a question, can I call a game file with a SPRX ?
Thanks

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo