Little Help!
#2

Use SetPlayerScore and GetPlayerScore.

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


Messages In This Thread
Little Help! - by Killer786 - 18.11.2011, 12:36
Re: Little Help! - by jamiesage123 - 18.11.2011, 12:47
Re: Little Help! - by Killer786 - 19.11.2011, 13:14
Re: Little Help! - by jamiesage123 - 19.11.2011, 13:34
Re: Little Help! - by Killer786 - 19.11.2011, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)