Advertisement
Guest User

Poderoso Anti Money Hack

a guest
Apr 26th, 2011
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. /* Creditos a Poderoso Chefão
  2. Como Usar:
  3. Passo 1: Substitua GetPlayerMoney por PC_DarDinheiro
  4. Passo 2: Substitua GetPlayerMoney por PC_GetarDinheiro
  5. Passo 3: Substitua ResetPlayerMoney por PC_ResetarDinheiro
  6. Passo 4: Adicione a função PC_AtualizarDinheiro(playerid); na public OnPlayerUpdate(playerid)
  7. Extra: para escolher a versão que deseja utilizar Defina VERSAO_DO_SAMP (Defina 0 para 0.2x ou Defina 1 para 0.3b)
  8. Creditos: Poderoso Chefão
  9. native PC_DarDinheiro(playerid,Dinheiro);
  10. native PC_SetarDinheiro(playerid,Dinheiro);
  11. native PC_GetarDinheiro(playerid);
  12. native PC_ResetarDinheiro(playerid);
  13. native PC_AtualizarDinheiro(playerid);
  14. */
  15. #include <a_samp>
  16. #define VERSAO_DO_SAMP 0 // Defina 0 para 0.2x ou Defina 1 para 0.3b mais
  17. #if VERSAO_DO_SAMP == 1
  18. stock PC_DarDinheiro(playerid,Dinheiro) return SetPVarInt(playerid,"dinheiro",GetPVarInt(playerid,"dinheiro")+Dinheiro);
  19. stock PC_SetarDinheiro(playerid,Dinheiro) return SetPVarInt(playerid,"dinheiro",Dinheiro);
  20. stock PC_GetarDinheiro(playerid) return GetPVarInt(playerid,"dinheiro");
  21. stock PC_ResetarDinheiro(playerid) return SetPVarInt(playerid,"dinheiro",0);
  22. stock ChefaoSetarDinheiro(playerid) { ResetPlayerMoney(playerid); GivePlayerMoney(playerid, GetPVarInt(playerid,"dinheiro")); }
  23. stock PC_AtualizarDinheiro(playerid) if(GetPlayerMoney(playerid) != GetPVarInt(playerid,"dinheiro")) ChefaoSetarDinheiro(playerid);
  24. #endif
  25. #if VERSAO_DO_SAMP == 0
  26. new PC_Dinheiro[MAX_PLAYERS];
  27. stock PC_DarDinheiro(playerid,Dinheiro) return PC_Dinheiro[playerid] += Dinheiro;
  28. stock PC_SetarDinheiro(playerid,Dinheiro) return PC_Dinheiro[playerid] = Dinheiro;
  29. stock PC_GetarDinheiro(playerid) return PC_Dinheiro[playerid];
  30. stock PC_ResetarDinheiro(playerid) return PC_Dinheiro[playerid] = 0;
  31. stock ChefaoSetarDinheiro(playerid) { ResetPlayerMoney(playerid); GivePlayerMoney(playerid, PC_Dinheiro[playerid]); }
  32. stock PC_AtualizarDinheiro(playerid) if(GetPlayerMoney(playerid) != PC_Dinheiro[playerid]) ChefaoSetarDinheiro(playerid);
  33. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement