Guest User

Easy Anti Money Hack By peppinux aka Peppe_Stasu

a guest
Aug 19th, 2010
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //In cima
  2. new SoldiPlayer[MAX_PLAYERS];
  3.  
  4. //Sotto OnGameModeInit
  5. SetTimer("CheckMoneyHack",1000,true);
  6.  
  7. //Fuori da tutto
  8. forward CheckMoneyHack();
  9. public CheckMoneyHack()
  10. {
  11.     for(new i = 0; i < GetMaxPlayers(); i++)
  12.     {
  13.         if(IsPlayerConnected(i) && GetPlayerMoney(i) > GetSoldiPlayer(i))
  14.         {
  15.             new soldihackerati = GetPlayerMoney(i) - GetSoldiPlayer(i);
  16.             OnPlayerMoneyHack(i,soldihackerati);
  17.         }
  18.     }
  19. }
  20.  
  21. forward OnPlayerMoneyHack(playerid,soldihackerati);
  22. public OnPlayerMoneyHack(playerid,soldihackerati)
  23. {
  24.     return 1;
  25. }
  26.  
  27. GiveSoldiPlayer(playerid,soldi)
  28. {
  29.     GivePlayerMoney(playerid,soldi);
  30.     SoldiPlayer[playerid] += SoldiPlayer[playerid];
  31. }
  32.  
  33. ResetSoldiPlayer(playerid)
  34. {
  35.     ResetPlayerMoney(playerid);
  36.     SoldiPlayer[playerid] = 0;
  37. }
  38.  
  39. GetSoldiPlayer(playerid)
  40. {
  41.     return SoldiPlayer[playerid];
  42. }
  43.  
  44. SetSoldiPlayer(playerid,soldi)
  45. {
  46.     ResetSoldiPlayer(playerid);
  47.     GiveSoldiPlayer(playerid,soldi);
  48. }
RAW Paste Data