Advertisement
BaSs_HaXoR

[SPRX] Real Way to call functions

Jul 28th, 2014
805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. //[SPRX] Real Way to call functions
  2. //Real Way to call functions
  3. //http://www.nextgenupdate.com/forums/ps3-cheats-customization/751642-sprx-real-way-call-functions-2.html
  4.  
  5.  
  6. //GSSC:
  7.  
  8. struct tocs {
  9.         int32_t gsscof;
  10.         int32_t toc;
  11.     };
  12.  
  13.     tocs gssscfunc = { 0x34A1DC, 0xD67E98 };
  14.     typedef void(*Se***SC)(int client, int type, char* command);
  15.    
  16.     SetGSSC GSSC = (SetGSSC)(tocs*)&gssscfunc;
  17. //SetGSSC
  18. //How to use:
  19. //Code:
  20. GSSC(0,0,"O \"This is a test\"");
  21.  
  22. //Or like this:
  23.  
  24. #define TOC                         ( 0xD67E98 )
  25.  
  26. #include <sys/types.h>
  27.  
  28. struct opd_s
  29. {
  30.     int32_t sub;
  31.     int32_t toc;
  32. };
  33.  
  34. typedef struct scr_entref_t
  35. {
  36.     short entnum;
  37.     short classnum;
  38. } scr_entref_t;
  39.  
  40. void SV_GameSendServerCommand(int, char*);
  41.  
  42. void SV_GameSendServerCommand(int Client, char* Command)
  43. {
  44.     opd_s SV1 = { 0x34A1DC, TOC };
  45.     void(*SVGSSC)(int client, int type, char* cmd) = (void(*)(int, int, char*))&SV1;
  46.     SVGSSC(Client, 0, Command);
  47. }
  48. //and remember the toc is diffrent in any games for bo2 its :0xD67E98
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement