18.03.2011, 07:02
I need in the table when press tab this: players score=players money...So id=0 name=player score=his money ping=xx
public OnPlayerUpdate(playerid)
{
SetPlayerScore(playerid, GetPlayerMoney(playerid));
return 1;
}
#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;
}
SetPlayerScore(playerid, GetPlayerMoney(playerid));
This should work but i'm not 100% sure.
pawn Код:
pawn Код:
|
stock GivePlayerCash(playerid,amount)
{
#undef GivePlayerCash
GivePlayerMoney(playerid, amount); //give the player the amount you put.
#define GivePlayerCasg GivePlayerMoney
SetPlayerScore(playerid, GetPlayerMoney(playerid)); //set there score to there current money.
return 1;
}