anti money cheathelp -
Kar - 31.07.2010
pawn Код:
stock GiveScash(playerid, cash)
{
PlayerInfo[playerid][Scash] = PlayerInfo[playerid][Scash] + cash;
return PlayerInfo[playerid][Scash];
}
stock SetScash(playerid, cash)
{
PlayerInfo[playerid][Scash] = cash;
return PlayerInfo[playerid][Scash];
}
stock ResetScash(playerid)
{
return PlayerInfo[playerid][Scash] = 0;
}
doesnt work..?
Re: anti money cheathelp -
Carlton - 31.07.2010
Show where you know it doesn't work. The money hack timer.
Re: anti money cheathelp -
Kar - 31.07.2010
i need a timer<.<?
Re: anti money cheathelp -
cessil - 31.07.2010
add in them
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,PlayerInfo[playerid][Scash]);
just going from memory, those functions might be a lil different but you're just changing the server side variable and not what they will see
Re: anti money cheathelp -
GaGlets(R) - 31.07.2010
Just follow my tuturial - will find on tuturials page..
pawn Код:
stock GiveScash(playerid, cash)
{
PlayerInfo[playerid][Scash] += cash;
//dont know about returns - check wiki - in search type "stock"
}
stock SetScash(playerid, cash)
{
PlayerInfo[playerid][Scash] = cash;
}
stock ResetScash(playerid)
{
PlayerInfo[playerid][Scash] = 0;
}
also need a small timer for showing the money (Green money)
In the Timer Put
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerMoney(i) != PlayerInfo[i][Scash])
{
ResetPlayerMoney(i);
GivePlayerMoney(i,PlayerInfo[i][Scash]);
}
}
Re: anti money cheathelp -
Kar - 31.07.2010
are u sure this will work cus NO OTHER ANTI CHEAT works for me
edit. also i didnt understand ur tut.
also how about a getplayercash?
Re: anti money cheathelp -
willsuckformoney - 31.07.2010
lol his TuT is confusing a little && no other anti cheat fully works anymoar
Re: anti money cheathelp -
Kar - 31.07.2010
how the hell do i make it give me my cash
pawn Код:
GivePlayerMoney(playerid, - GetPlayerMoney(playerid) + dini_Int(pfile, "Money"));
Re: anti money cheathelp -
cessil - 31.07.2010
Quote:
Originally Posted by GaGlets®
also need a small timer for showing the money (Green money)
In the Timer Put
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(GetPlayerMoney(i) != PlayerInfo[i][Scash]) { ResetPlayerMoney(i); GivePlayerMoney(i,PlayerInfo[i][Scash]); } }
|
lol no you don't just show the money when it changes
Re: anti money cheathelp -
GaGlets(R) - 31.07.2010
Omg.. my tuturial for anticheat.. maybe is confusing, but it works only with one bug.. - Food and Drink automats - the money wont be taking off...
Wont advertise.. If you want you can check it on our server (Latvian language) noone can hack even if binding keys for depositing etc... (PM)
The timer is used for only showing the money but ofcourse you can even disable greemoney and make a textdraw to show money..
Kar...
ResetPlayerMoney(playerid);
And then
GivePlayerMoney(playerid,dini.....);