SA-MP Forums Archive
Anti-Cheat problem - 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: Anti-Cheat problem (/showthread.php?tid=361830)



Anti-Cheat problem - Akcent_Voltaj - 22.07.2012

hi i got problem i buy a car then the green money goes down and the money from stats doesent go down..


Re: Anti-Cheat problem - [MM]RoXoR[FS] - 22.07.2012

Just set Player Stats Money to players Green Money, when player disconnects.

This forum requires that you wait 120 seconds between posts. Please try again in 46 seconds.


Re: Anti-Cheat problem - Cjgogo - 22.07.2012

REMOVED!


Re: Anti-Cheat problem - Roko_foko - 22.07.2012

Quote:
Originally Posted by Akcent_Voltaj
Посмотреть сообщение
hi i got problem i buy a car then the green money goes down and the money from stats doesent go down..
Find the variable where you store money and change it. GivePlayerMoney() isn't enough.
Tip to find it: CTRL+F, I am sure that the variable in it's name has 'money' or 'cash'


Re: Anti-Cheat problem - Akcent_Voltaj - 22.07.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Find the variable where you store money and change it. GivePlayerMoney() isn't enough.
Tip to find it: CTRL+F, I am sure that the variable in it's name has 'money' or 'cash'
what do i have to put i only have giveplayermoney..


Re: Anti-Cheat problem - Roko_foko - 22.07.2012

Show me your /stats command or wherever you see your stats


Re: Anti-Cheat problem - Akcent_Voltaj - 22.07.2012

i cant show people will steal....and i cant pm its longer then 5000...


Re: Anti-Cheat problem - Roko_foko - 22.07.2012

Okay, I need only one line. The line where program shows it's client the stats. It should look like this:
Код:
format(string,128,"Money:%d,blablabla,",gPlayerMoney[playerid],blablabla);



Re: Anti-Cheat problem - Akcent_Voltaj - 22.07.2012

PHP код:
formatstatdialogstringsizeofstatdialogstring ),"{FFFF00}\nLevel: %d Sex: %s Age: %d Origin: %s Viata: %.1f Cash: $%d Bank: $%d Ph: %d",level,atext,age,otext,healthcashaccountpnumber); strcat(coordsstring,statdialogstring);
new 
cash =  GetPlayerCash(targetid); 



Re: Anti-Cheat problem - Roko_foko - 22.07.2012

Just put
pawn Код:
cash=GetPlayerMoney(playerid);
before the format line