22.04.2009, 15:12
haha - Few days ago i did really the same functions myself. (for my cash anti-cheat[i also have weapon,health & armor])
Well made!, thou there is no other way to do this
p.s. It is impossible to hack this, if you think otherwise, then you are an retard.
(It is possible via catching the variable packet, but it is practically impossible to find out which variable to set to something + i believe only 2-3 coders on this forum can script that).
For getting/setting name use format() (search wiki)
Luxeon
Well made!, thou there is no other way to do this
p.s. It is impossible to hack this, if you think otherwise, then you are an retard.
(It is possible via catching the variable packet, but it is practically impossible to find out which variable to set to something + i believe only 2-3 coders on this forum can script that).
Quote:
Originally Posted by ArTisT
i need a code if someone use money hack it should send messages to admins
|
pawn Code:
public MoneyTimer()
{
new username[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerCash(i) != GetPlayerMoney(i))
{
ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money in the moneybar to the serverside cash, Do not remove!
new hack = GetPlayerMoney(i) - GetPlayerCash(i);
GetPlayerName(i,username,sizeof(username));
printf("%s has picked up/attempted to spawn $%d.", username,hack);
if(Admin[playerid > 0)
{
SendClientMessage(playerid,COLOR_WHITE,"Some one money hacked!");
}
}
}
}
}
Luxeon