SA-MP Forums Archive
Little Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little Help! (/showthread.php?tid=297907)



Little Help! - Killer786 - 18.11.2011

guys i need a little help :P look i installed the [FS] GarHouse and i saw that i need to buy every house with money so... is it possible that instead of money i could use score? my server has score system and even i can buy weapons from score [my friend made that] but now i need a little help someone plz help i already bought host and i wanna use it but i cant because of this problem cuz most of u know that money can be hacked in samp and at the start i even need administrators, my forums is already done.


Re: Little Help! - jamiesage123 - 18.11.2011

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.


Re: Little Help! - Killer786 - 19.11.2011

man i fail at those what to do :/


Re: Little Help! - jamiesage123 - 19.11.2011

You can either try and find the part in the script where it checks the players money / takes it away, or you can post in the FS's topic asking for help.


Re: Little Help! - Killer786 - 19.11.2011

look man i will do what ever u will say plz do it for me! this is the last thing needed in my server and you are thr only one who can give it to me!