Posts: 186
Threads: 39
Joined: Apr 2012
Hi,
This is normal that my player loses 100$ at respawn after the dead with the money (not the textdraw : original
http://image.noelshack.com/fichiers/...-sa-mp-041.png ) ?
I thinks not it's my GM... It's impossible
Help me
Thanks
Posts: 947
Threads: 58
Joined: Nov 2011
Reputation:
0
Please provide the code inside your OnPlayerDeath and OnPlayerSpawn callback.
Posts: 186
Threads: 39
Joined: Apr 2012
PHP Code:
public OnPlayerSpawn(playerid)
{
TogglePlayerClock(playerid, 0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
/*
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, pInfo[playerid][pP__argent]);
*/
return 1;
}
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
Player loses $100 by default when he dies..
If you want to disable that you should give him 100$ when he dies..
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
By default when a player dies, the money goes $-100.
Use server-side money and it can solve that problem, plus it will not allow cheaters to get "fake" money.
Posts: 186
Threads: 39
Joined: Apr 2012
Quote:
Originally Posted by Konstantinos
By default when a player dies, the money goes $-100.
Use server-side money and it can solve that problem, plus it will not allow cheaters to get "fake" money.
|
Exactly, I am creating my anticheat, and I do not know if my code was wrong or if by default when a player loses $100!
So my players was ban because the money was different
Thanks a you for the confirm!
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
I wouldn't recommend you to ban the players if you're going to use server-side money because there're ways of loosing/earning money from the client side. It'd be better to just reset and give the registered money after few minutes.
Posts: 186
Threads: 39
Joined: Apr 2012
Please explique more :
there are ways of losing/earning money from the client side
Bonus stunt ?