Posts: 344
Threads: 88
Joined: Jun 2014
Reputation:
0
Hello !
When a player death > The player loose 100$.
It's a "problem" in GTA.
I have an anticheat (call with OnPlayerUpdate), and it's a problem...
How to resolve this problem?
THX
Posts: 1,648
Threads: 482
Joined: Jun 2010
You literally need to give them $100 on death, it's unavoidable, perhaps a SAMP update will fix this.
Add
pawn Код:
GivePlayerMoney(playerid, 100);
Under OnPlayerDeath.
Posts: 344
Threads: 88
Joined: Jun 2014
Reputation:
0
The anticheat banned before ..
Posts: 1,648
Threads: 482
Joined: Jun 2010
Can I see the code where you use a money check for the anti cheat?
Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
forward Anticheat_money(playerid);
public Anticheat_money(playerid)
{
new string[144];
if(GetPlayerMoney(playerid) != PlayerInfo[playerid][Cash] && PlayerDead[playerid] == 0)
{
SendClientMessage(playerid, -1, "Cheat money detected.");
// Ban player.
SetTimerEx("Player_kick", 500, 0, "d", playerid);
return 1;
}
return 1;
}
Add PlayerDead[playerid] under OnPlayerDeath, That should make an exemption.