View Full Version : Max Furniture

09/07/2017, 11:14 PM
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..

09/07/2017, 11:58 PM
new maxFurnitures[3] = {10, 20, 50};
// When player creates a furniture
if(furnitureAmount > maxFurnitures[pZoneLevel]) return ..
furnitureAmount ++;

10/07/2017, 12:14 AM
Alright, Thanks for your help, +rep..