help | money anti cheat... - 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 | money anti cheat... (
/showthread.php?tid=149840)
help | money anti cheat... -
_V1rTu4L_ - 23.05.2010
i have this on top of the mode:
when player leaves the server:
now, im using this, instead of the regular function:
pawn Code:
stock AC_GivePlayerMoney(playerid, amount)
{
nmoney[playerid] += amount;
GivePlayerMoney(playerid, amount);
return 1;
}
this callback checks if someone is using money cheat every second:
pawn Code:
public Money_Cheat()
{
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetPlayerMoney(i) != nmoney[i])
Kick(i);
}
now the problem is that i get kick in a second.. even if i don't use money cheat..
thanks for helpers
Re: help | money anti cheat... -
pierhs - 23.05.2010
Why dont u just
pawn Code:
SetPlayerMoney(i, nmoney);
instead of
Re: help | money anti cheat... -
_V1rTu4L_ - 23.05.2010
can you help me solve the problem?
i want the cheaters will be kick.
Re: help | money anti cheat... -
pierhs - 23.05.2010
Code:
nmoney[playerid] = 0;
put this to OnPlayerConnect not to OnPlayerDisconnect
Re: help | money anti cheat... -
cAMo - 23.05.2010
Quote:
undefined symbol "SetPlayerMoney"
|
Where do you get SetPlayerMoney?
Re: help | money anti cheat... -
_V1rTu4L_ - 23.05.2010
Quote:
Originally Posted by Chuck_Taylor
Code:
nmoney[playerid] = 0;
put this to OnPlayerConnect not to OnPlayerDisconnect
|
its the same..
if i put this on OnPlayerDisconnect, when im connecting, its still will be the same value..
someone that knowes can help me please?