SA-MP Forums Archive
[HELP] GivePlayerCash [2$ to anyone who finds a solution!] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] (/showthread.php?tid=95832)



[HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 05.09.2009

Im using GivePlayerCash for antimoneyhack. But in filterscript i replace these:

Quote:

GivePlayerMoney(BuySell[playerid][ID], BuySell[playerid][Ammount]);
GivePlayerMoney(playerid, -BuySell[playerid][Ammount]);

With these....

Quote:

CallRemoteFunction("GivePlayerCash","ii",BuySell[playerid][ID], BuySell[playerid][Ammount]);
CallRemoteFunction("GivePlayerCash","ii",playerid, -BuySell[playerid][Ammount]);

But the player gets billions of money when you sell for like 1000$...

Whats the problem?


Re: [HELP] GivePlayerCash - ДitisOnHuora - 05.09.2009

Help please, ill pay 1$ from paypal ..


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 05.09.2009

2$ anyone! Please help!


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - Zeex - 05.09.2009

pawn Код:
GivePlayerMoney(BuySell[playerid][ID], BuySell[playerid][Ammount]);
GivePlayerMoney(playerid, -BuySell[playerid][Ammount]);
Check whether this code works. Perhaps your problem is not because of GivePlayerCash.


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 05.09.2009

Quote:
Originally Posted by ZeeX
pawn Код:
GivePlayerMoney(BuySell[playerid][ID], BuySell[playerid][Ammount]);
GivePlayerMoney(playerid, -BuySell[playerid][Ammount]);
Check whether this code works. Perhaps your problem is not because of GivePlayerCash.
No, there is no GivePlayerMoney, there is GivePlayerCash. Its money anti hack. I just need to call remote if FS is using GivePlayerMoney...


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - Zeex - 05.09.2009

I know, just do it and look how much the player will get


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 05.09.2009

Quote:
Originally Posted by ZeeX
I know, just do it and look how much the player will get
Now the price is fine, when you sell it 1000 you get 1000$, BUT ofc it will now reset money back. What could possibly be the problem?


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 06.09.2009

Help!


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - Finn - 06.09.2009

Quote:
Originally Posted by ZeeX
pawn Код:
GivePlayerMoney(BuySell[playerid][ID], BuySell[playerid][Ammount]);
GivePlayerMoney(playerid, -BuySell[playerid][Ammount]);
Check whether this code works. Perhaps your problem is not because of GivePlayerCash.
He's using some anti-hack filterscript, you cannot call functions from filterscripts by just using the function, you gotta use CallRemoteFunction().

Using the non-anti-hack function GivePlayerMoney will obviously fuck up the anti-hack system and will not report money hackers (or however the anti-hack works).

Send the GivePlayerCash() from your filterscript and let's see what's wrong with it.

PS. Mun дiti ei ole huora.


Re: [HELP] GivePlayerCash [2$ to anyone who finds a solution!] - ДitisOnHuora - 06.09.2009

Quote:
Originally Posted by Finn
Quote:
Originally Posted by ZeeX
pawn Код:
GivePlayerMoney(BuySell[playerid][ID], BuySell[playerid][Ammount]);
GivePlayerMoney(playerid, -BuySell[playerid][Ammount]);
Check whether this code works. Perhaps your problem is not because of GivePlayerCash.
He's using some anti-hack filterscript, you cannot call functions from filterscripts by just using the function, you gotta use CallRemoteFunction().

Using the non-anti-hack function GivePlayerMoney will obviously fuck up the anti-hack system and will not report money hackers (or however the anti-hack works).

Send the GivePlayerCash() from your filterscript and let's see what's wrong with it.

PS. Mun дiti ei ole huora.
I am using this "AntiMoneyHack" http://forum.sa-mp.com/index.php?PHP...&topic=95879.0

Btw i changed one of the lines "ii" to "i" and now the Seller gets the money, but the Buyer wont lose the money...

PS. Hahaha