WeenSoares_

[Include]WS - Anti Money Hacker

Jan 14th, 2012
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. /*********************************************
  4. * Include WS - Money Hacker *
  5. * (c) Copyright 2012 by WeenSoares *
  6. * *
  7. * @Autor : WeenSoares *
  8. * @Data : 14 de janeiro de 2012 *
  9. * *
  10. * *
  11. **********************************************/
  12. /*------------------------------------
  13. native GivePlayerCash(playerid, quantia);
  14. -------------------------------------*/
  15.  
  16. forward CheckMoney();
  17.  
  18. stock GivePlayerCash(playerid, quantia)
  19. {
  20. GivePlayerMoney(playerid, quantia);
  21. SetPVarInt(playerid, "Dinheiro", GetPlayerMoney(playerid));
  22. }
  23. public CheckMoney()
  24. {
  25. new strmsg[128], pName[MAX_PLAYER_NAME];
  26. for(new i = 0; i < MAX_PLAYERS; i++)
  27. {
  28. if(GetPlayerMoney(i) > GetPVarInt(i, "Dinheiro"))
  29. {
  30. GetpName(i, pName, sizeof(pName));
  31. format(strmsg, sizeof(strmsg), "[WS Money Hacker]: O Player %s foi banido por fazer money hacker !", pName);
  32. SendClientMessageToAll(0xE3E3E3FF, strmsg);
  33. Ban(i);
  34. }
  35. }
  36. }
Add Comment
Please, Sign In to add comment