18.03.2011, 07:38
This should work but i'm not 100% sure.
also note if you have something like serverside money which changes the way you give money you could just put this in
If you don't have anything like Server side money (anti cheat) just ignore what i said just above and use the first code i posted. Hopefully that should work.
pawn Код:
#define GivePlayerMoney GivePlayerCash //So you can still use GivePlayerMoney(playerid, amount); and don't have to worry about changing all of them.
stock GivePlayerCash(playerid,amount)
{
GivePlayerMoney(playerid, amount); //give the player the amount you put.
SetPlayerScore(playerid, GetPlayerMoney(playerid)); //set there score to there current money.
return 1;
}
pawn Код:
SetPlayerScore(playerid, GetPlayerMoney(playerid));