Why when player die, he lose 100$ ad how to delete that ?
#1

So i want when player die to not lose 100$
Reply
#2

Can you show us the codes of this script ! so we can help u out !
Reply
#3

No, that is not in mine code, that is made by the SA-MP team....
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    GivePlayerMoney(playerid, 100);
}
The reason they lose money is because of the default San Andreas feature where the hospital take the money.
Reply
#5

you can also if you have a serverside money put OnPlayerUpdate a functions to set the money.
Reply
#6

Quote:
Originally Posted by caoraivoso3
Посмотреть сообщение
you can also if you have a serverside money put OnPlayerUpdate a functions to set the money.
Server-side money would be better to use anyways. However, do not use OnPlayerUpdate for that.. Even a timer every 5 seconds, just to re-show the money the player actually has is fine.

What about if a player has $1 and they die? They'll get $100 so it might be abusive.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)