Max Furniture - 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: Max Furniture (
/showthread.php?tid=637158)
Max Furniture -
JasonRiggs - 09.07.2017
Hello, I'm working on furniture system in personnel player zone, I have got 3 zones sizes, I want to make a max furniture for each zone size, And if player attempted to create more furniture than the max furniture available for his land size, prevent him.. I am totally lost, don't know how to make that prevent thing..
I already defined the Max Furniture for every size on the zone creation command (by admins) I just want to make that prevent thing..
Re: Max Furniture -
ranme15 - 09.07.2017
Код:
new maxFurnitures[3] = {10, 20, 50};
// When player creates a furniture
if(furnitureAmount > maxFurnitures[pZoneLevel]) return ..
furnitureAmount ++;
Re: Max Furniture -
JasonRiggs - 09.07.2017
Alright, Thanks for your help, +rep..