SA-MP Forums Archive
money hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: money hack (/showthread.php?tid=287181)



money hack - hydronic - 02.10.2011

Hello anyone knows how to make an anti hack money

filterscripts only got one when we go there we automatically signs you are Banned


Re: money hack - suhrab_mujeeb - 02.10.2011

Quote:
Originally Posted by hydronic
Посмотреть сообщение
Hello anyone knows how to make an anti hack money

filterscripts only got one when we go there we automatically signs you are Banned
More explaination?


Re: money hack - Pharrel - 02.10.2011

pawn Код:
//GM TOP
forward ChecarMoneyHack();

//OnGameModeInit
SetTimer("ChecarMoneyHack", 5000,true);

//with your publics
public ChecarMoneyHack()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerMoney(playerid) != VARIABLE WHO STORE THE MONEY)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, VARIABLE WHO STORE THE MONEY);
}
}
}
i did in quick reply so isnt idented


Re: money hack - hydronic - 02.10.2011

use of PPC_trcuking gamemods .....

and I filterscrito this and when I go into the game we lost connections avtomatko captions
when I want to go back inside me You are the inscriptions from this server Banned

Код:
#include <a_samp>
#include <a_players>

#include <a_samp>
#define FilterScript
//---------------Forwarding-------------------------------
forward CriarTextDraw (playerid);
forward ActualizarTextDraws ();
forward ResetarDinheiro(playerid);
forward ChecarMoney(playerid);
//---------- Newsing -------------------------------------
new Cash[MAX_PLAYERS];
new Text:Money[MAX_PLAYERS];
//------------ Funзőes------------------------------------
/*
native GetPlayerCash(playerid);
native GivePlayerCash(playerid);
native ResetPlayerCash(playerid);
*/
public OnFilterScriptInit()
{

return 1;
}
public OnPlayerConnect(playerid)
{
SetTimer ("ActualizarTextDraws",true,500);
SetTimer ("ResetarDinheiro",true,500);
SetTimer ("ChecarMoney",true,1000);
CriarTextDraw(playerid);
return 1;
}

//----------- Text Draw's Criar---------------------------
public CriarTextDraw(playerid)
{
Money[playerid] = TextDrawCreate(634.000000, 417.000000, "$: 0");
TextDrawAlignment(Money[playerid], 3);
TextDrawBackgroundColor(Money[playerid], 0x000000FF);
TextDrawFont(Money[playerid], 2);
TextDrawLetterSize(Money[playerid], 0.499999, 1.400000);
TextDrawSetOutline(Money[playerid], 1);
return 1;
}
//------------Actualizar Text Draw's-----------------------
public ActualizarTextDraws()
{
new String[100];
for(new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
{
if(IsPlayerConnected(playerid))
{
format(String, sizeof(String), "$: %d", GetPlayerCash(playerid));
TextDrawSetString(Money[playerid], String);
TextDrawShowForPlayer(playerid, Money[playerid]);
}
}
}
//--------Banir se Burlar Sistema ----------------------
public ChecarMoney(playerid)
{
if(GetPlayerMoney(playerid) >= 1)
{
new name[MAX_PLAYER_NAME], string[55];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "-AntiMh- %s foi banido |Motivo: Money Hack.",name);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
}
return 1;
}
//-----------Caos Tenha Dinheiro Reseta -----------------
public ResetarDinheiro(playerid)
{
ResetPlayerMoney(playerid);
return 1;
}
//-----------Getar Cash ---------------------------------
stock GetPlayerCash(playerid)
{
	return Cash[playerid];
}
//-----------Resetar Cash -------------------------------
stock ResetPlayerCash(playerid)
{
	Cash[playerid] = 0;
	return Cash[playerid];
}
//-----------Dar Cash -----------------------------------
stock GivePlayerCash(playerid,QuantiaCash)
{
	Cash[playerid] =Cash[playerid] + QuantiaCash;
	return Cash[playerid];
}
//------------ Exemplo Simples Commandos ----------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/dinheiro", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Ganho Dinheiro");
GivePlayerCash(playerid,100);
return 1;
}
return 0;
}