anti money cheathelp
#1

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..?
Reply
#2

Show where you know it doesn't work. The money hack timer.
Reply
#3

i need a timer<.<?
Reply
#4

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
Reply
#5

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]);
     }
}
Reply
#6

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?
Reply
#7

lol his TuT is confusing a little && no other anti cheat fully works anymoar
Reply
#8

how the hell do i make it give me my cash

pawn Код:
GivePlayerMoney(playerid, - GetPlayerMoney(playerid) + dini_Int(pfile, "Money"));
Reply
#9

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
Reply
#10

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.....);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)