Max Furniture
#1

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

Код:
new maxFurnitures[3] = {10, 20, 50};
// When player creates a furniture
if(furnitureAmount > maxFurnitures[pZoneLevel]) return ..
furnitureAmount ++;
Reply
#3

Alright, Thanks for your help, +rep..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)