Riddick94

OnClientCheckResponse

May 6th, 2014
1,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.62 KB | None | 0 0
  1. #include        <a_samp>
  2.  
  3. forward OnClientCheckResponse(playerid, actionid, memaddr, retndata);
  4. native SendClientCheck(playerid, actionid, memaddr, memOffset, bytesCount);
  5.  
  6. enum(<<= 1)
  7. {
  8.     NULL = 0,
  9.     SOBEIT = 0x5E8606
  10. };
  11.  
  12. public OnPlayerConnect(playerid)
  13. {
  14.     new actionid = 0x5, memaddr = SOBEIT, retndata = 0x4;
  15.     SendClientCheck(playerid, actionid, memaddr, NULL, retndata);
  16.     return 1;
  17. }
  18.  
  19. public OnClientCheckResponse(playerid, actionid, memaddr, retndata)
  20. {
  21.     switch(retndata)
  22.     {
  23.         case 0xA0: printf("Player has clear GTA.");
  24.         default:
  25.         {
  26.             printf("Player has some files installed.");
  27.         }
  28.     }
  29.     return 1;
  30. }
Add Comment
Please, Sign In to add comment