08.04.2013, 14:05
1. I want to write the data from the enumerators to the DB as often as possible without draining resources. What intervals do you all use for your servers.
2. I want to implement a vehicle lock system that can also be used outside the vehicle. I have seen an implementation that uses a LastVehicle[MAX_PLAYERS] array to store the last vehicle the player was in and perform the lock/unlock on that vehicle if they own it and are close enough. The problem with that system for me is the player can have multiple cars spawned at once so say I own a freeway and a clover. I drive my clover to pick up my freeway. I lock my clover with lock and the LastVehicle[playerid] is set as the clover. I walk over the my freeway and type /unlock and it unlocks the clover because that is the last vehicle I was in. How should I implement this (logic rather than code)
Thanks for looking!
2. I want to implement a vehicle lock system that can also be used outside the vehicle. I have seen an implementation that uses a LastVehicle[MAX_PLAYERS] array to store the last vehicle the player was in and perform the lock/unlock on that vehicle if they own it and are close enough. The problem with that system for me is the player can have multiple cars spawned at once so say I own a freeway and a clover. I drive my clover to pick up my freeway. I lock my clover with lock and the LastVehicle[playerid] is set as the clover. I walk over the my freeway and type /unlock and it unlocks the clover because that is the last vehicle I was in. How should I implement this (logic rather than code)
Thanks for looking!