Loses 100$
#1

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
Reply
#2

Please provide the code inside your OnPlayerDeath and OnPlayerSpawn callback.
Reply
#3

PHP Code:
public OnPlayerSpawn(playerid)
{
    
TogglePlayerClock(playerid0);
    return 
1;
}

public 
OnPlayerDeath(playeridkilleridreason)
{
    
/*
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, pInfo[playerid][pP__argent]);
       */
    
return 1;

Reply
#4

Player loses $100 by default when he dies..
If you want to disable that you should give him 100$ when he dies..
Reply
#5

Wrong*
Reply
#6

EDIT: ....
Reply
#7

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.
Reply
#8

Quote:
Originally Posted by Konstantinos
View Post
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!
Reply
#9

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.
Reply
#10

Please explique more :
there are ways of losing/earning money from the client side
Bonus stunt ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)