current number of vehicles in server
#1

i have a script that deletes vehicles when they are destroyed. after a while, there would be a noticable drop in the number of vehicles in the server. i would like to make a warning to tell me when there is less than 500 vehicles in the server so i can spawn more, but i dont know how to count the current number of vehicles in the server. i don't want to use a loop that checks every vehicle id because that would kill my processor, so if anyone else has a different way to get this number then that would be great.
if not, i will try it my way lol
thank you
Reply
#2

OGM create the vehicles, loop through all of them and store the count in a variable. When a vehicle is destroyed, set the variable -1 and check if(Variable < 500), then send the message to the owner/or we
Reply
#3

that's a really good idea. thank you. it was right in front of me the whole time, i guess i just needed someone to point it out lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)