iDarkRain

Anti Dialog Hack v1.1

Dec 2nd, 2011
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.98 KB | None | 0 0
  1. /*
  2.     Anti-DialogHack
  3.     Creado por iDarkRain
  4.    
  5.     Es posible cambiar la ID del dialog actual editando la memoria del cliente, aún en SA-MP 0.3d
  6.     Con este include no se podrá cambiar.
  7. */
  8.  
  9. #include <a_samp>
  10.  
  11. forward OnPlayerHackDialog(playerid,dialogid,dialoghackedid);
  12.  
  13. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  14. {
  15.     if(dialogid != GetPVarInt(playerid,"DialogID")) OnPlayerHackDialog(playerid,GetPVarInt(playerid,"DialogID"),dialogid);
  16.     CuandoRespondenDialog(playerid, GetPVarInt(playerid,"DialogID"), response, listitem, inputtext);
  17.     return 1;
  18. }
  19.  
  20. stock MostrarDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
  21. {
  22.     SetPVarInt(playerid, "DialogID", dialogid);
  23.     return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
  24. }
  25.  
  26. forward CuandoRespondenDialog(playerid, dialogid, response, listitem, inputtext[]);
  27.  
  28. #define OnDialogResponse CuandoRespondenDialog
  29. #define ShowPlayerDialog MostrarDialog
Advertisement
Add Comment
Please, Sign In to add comment