Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //[SPRX] Real Way to call functions
- //Real Way to call functions
- //http://www.nextgenupdate.com/forums/ps3-cheats-customization/751642-sprx-real-way-call-functions-2.html
- //GSSC:
- struct tocs {
- int32_t gsscof;
- int32_t toc;
- };
- tocs gssscfunc = { 0x34A1DC, 0xD67E98 };
- typedef void(*Se***SC)(int client, int type, char* command);
- SetGSSC GSSC = (SetGSSC)(tocs*)&gssscfunc;
- //SetGSSC
- //How to use:
- //Code:
- GSSC(0,0,"O \"This is a test\"");
- //Or like this:
- #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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement