Solutions - 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: Solutions (
/showthread.php?tid=372541)
Solutions -
Akcent_Voltaj - 27.08.2012
hi i got a problem with anti cheat
Problem: my filter script money is with giveplayermoney and my gamemode money is giveplayercash if i put giveplayercash in fs its undefinded i dont know what to do..
Re: Solutions -
Benzke - 27.08.2012
Remove giveplayermoney in that case.
Re: Solutions -
ddnbb - 27.08.2012
Put #include <your_anti_money_here> and change GivePlayerMoney's to GivePlayerCash's and it should work. Ofcourse depends what anti money hacking system you use, if you use mine, it will work for sure.
My Anti Money Hack:
https://sampforum.blast.hk/showthread.php?tid=369284
Quote:
Originally Posted by Benzke
Remove giveplayermoney in that case.
|
Please dont try to help anyone, if you dont know what are you talking about...
Re: Solutions -
Akcent_Voltaj - 27.08.2012
PHP код:
stock GivePlayerCash(playerid, money)
{
PlayerInfo[playerid][pCash] += money;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return PlayerInfo[playerid][pCash];
}
if i put this it will not work in fs..
Re: Solutions -
ddnbb - 27.08.2012
Quote:
Originally Posted by Akcent_Voltaj
PHP код:
stock GivePlayerCash(playerid, money)
{
PlayerInfo[playerid][pCash] += money;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return PlayerInfo[playerid][pCash];
}
if i put this it will not work in fs..
|
Yup, it wont work that way. One way is to remove all that and download my Filterscript, or another Anti Money Hack, which is using include files, so you can use GivePlayerCash in FS too.
Re: Solutions -
Akcent_Voltaj - 27.08.2012
but i put the fs in gamemode and if i restart from host vehicle id changes to 1.
Re: Solutions -
Akcent_Voltaj - 27.08.2012
so look i put my fs in my gamemode and i put a car works perfctly i buy it good and if i restart server from host vehicle id set to 1 and it isnt my car anymore cause i bought it with id 359..help pleasee
Re: Solutions -
Akcent_Voltaj - 27.08.2012
stupid people from forums..who cant help people.. i post something and ......
Re: Solutions -
Akcent_Voltaj - 27.08.2012
help sorry for angyness i posted like 1000 times..and im angry..