Advertisement
Shiny_

Untitled

Feb 8th, 2014
875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.09 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define NULL 0
  4. #define function%0(%1) forward%0(%1); public%0(%1)
  5. native SendClientCheck(playerid, actionid, memaddr, memOffset, bytesCount);
  6.  
  7. main() {
  8.     new playerid;
  9.     CallLocalFunction("OnPlayerConnect", "d", playerid);
  10.     return false;
  11. }
  12.  
  13. stock PlayerName(playerid) {
  14.     new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
  15.     return Name;
  16. }
  17.  
  18. public OnPlayerConnect(playerid) {
  19.     printf("%s dołącza do serwera", PlayerName(playerid));
  20.     new actionid = 0x5, memaddr = 0x5E8606, retndata = 4;
  21.     SendClientCheck(playerid, actionid, memaddr, NULL, retndata);
  22.     printf("Sprawdzanie gracza %s:\n%d\n%d\n%d\n%d\n%d", PlayerName(playerid), playerid, actionid, memaddr, NULL, retndata);
  23.     switch(retndata) {case 10: {
  24.         printf("Użytkownik %s prawdopodobnie posiada s0beita, bądź plik d3d9.dll w katalogu z GTA San Andreas", PlayerName(playerid));
  25.     }}
  26.     return true;
  27. }
  28.  
  29. function OnClientCheckResponse(playerid, actionid, memaddr, retndata) {
  30.     switch(retndata) {
  31.         case 0xA: printf("TA DZIWKA MA CZITY, ZBANÓJ JOM111");
  32.     }
  33.     return true || false; // nie wiem
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement