18.11.2011, 12:47
Use SetPlayerScore and GetPlayerScore.
https://sampwiki.blast.hk/ is really helpful.
--------------------
You can have "server side money" which people can't hack. Search around.
https://sampwiki.blast.hk/ is really helpful.
pawn Код:
if(GetPlayerScore(playerid) >= houseprice){
SetPlayerScore(playerid, GetPlayerScore(playerid) - houseprice);
// Buy the house
}else{
SendClientMessage(playerid, COLOR, "You don't have enough score to buy that house!");
}
You can have "server side money" which people can't hack. Search around.