07.12.2012, 22:19
Para acabar com os que gostam de usar money hack :P
pawn Код:
//Cуdigo: dPlaYer_
//Arrumaзгo do Cуdigo: SuYaNw
new dMoney[MAX_PLAYERS];
#define GivePlayerGrana(%0,%1) dMoney[%0] += %1, GivePlayerMoney(%0,%1)
#define ResetPlayerGrana(%0) dMoney[%0] = 0, ResetPlayerMoney(%0)
#define GetPlayerGrana(%0) (dMoney[%0] != GetPlayerMoney(%0) ? CallLocalFunction("OnMoneyHack", "ii", %0) : GetPlayerMoney(%0))
//Fim - By SuYaWn
forward OnMoneyHack(playerid, Money);
public OnMoneyHack(playerid, Money)
{
static string[128];
format(string, 128, "( Anti - MH ) Й proibido o Uso de Money Hack No Servidor! Quantia Pega : %d | Auto Kick |", Money);
SendClientMessage(playerid, -1, string);
Kick(playerid);
return true;
}
// Exemplo de Uso:
//Dar
CMD:teste(playerid)
{
GivePlayerGrana(playerid, 50);
return 1;
}
//Resetar
CMD:teste(playerid)
{
ResetPlayerGrana(playerid, 50);
return 1;
}
//Checar
CMD:teste(playerid)
{
GetPlayerGrana(playerid, 50);
return 1;
}