19.12.2010, 14:14
Hey, I have a problem with my car system.
I wanna define MAX_CARS_FOR_SERVER (it will define MAX Cars for server...(how many buyable cars can be in server).
Problem is: I don't know how to do put this into the script
But how it's gonna work?
- When the slots go full, then server says that: "MAX_CARS_FOR_SERVER is full, change MAX_CARS_FOR... value"
- When the slots are full then cars don't spawn. (because the limit is full)
Something like this: (but it's wrong )
Bad english
Thanks,
Arcanize
I wanna define MAX_CARS_FOR_SERVER (it will define MAX Cars for server...(how many buyable cars can be in server).
Problem is: I don't know how to do put this into the script
But how it's gonna work?
- When the slots go full, then server says that: "MAX_CARS_FOR_SERVER is full, change MAX_CARS_FOR... value"
- When the slots are full then cars don't spawn. (because the limit is full)
Something like this: (but it's wrong )
Код:
if(vid >= MAX_CARS_FOR_SERVER) { print("Auto limiit on tдis [4]"); SCM(playerid, COLOR_LIGHTRED, "Autolimiit on tдis [4 sхidukit]"); return 0; }
Bad english
Thanks,
Arcanize