How to set a max number of properties per players ? - 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: How to set a max number of properties per players ? (
/showthread.php?tid=394438)
How to set a max number of properties per players ? -
Kethrios - 22.11.2012
Hello guys.
Anyone know how to set a number like 3 houses per players ?
Because actually in the script I use, players can have an unlimited number of properties, but only 3 locations.
Tell me what you need to help me and i'll post it.
Thank you !
Re: How to set a max number of properties per players ? -
-=Dar[K]Lord=- - 22.11.2012
Use A Variable... Like PInfo[playerid][Houses] == 1 if he has one house then ++ if he bought a new house
and then onthe dialog / command use if PInfo[playerid][Houses] == MAX_HOUSES_CAN_BE_OWNED then he will get a message that .. you cannot get more houses and the operations of buying will break
Re : How to set a max number of properties per players ? -
Kethrios - 22.11.2012
Thank you for helping. Thing is I'm a newbie here.
Can you check your PM's please ?
Re : How to set a max number of properties per players ? -
Kethrios - 22.11.2012
Update : I'm using MySQL, still looking for help.
Re: How to set a max number of properties per players ? -
Glad2BeHere - 22.11.2012
u still need a saving variable mysql is used to load and save not to do the scripting also you will need to create a table with mysql