People pushing cars -
Osviux - 04.01.2011
Why vehicles dont get back to their previous position when they are pushed by players!?
Re: People pushing cars -
Jochemd - 04.01.2011
If you want that create a timer which respawns cars, or use AddStaticVehicleEx / CreateVehicle.
Re: People pushing cars -
AF1_CLAN - 04.01.2011
Well they don't, unless you set a timer so the un-used cars gets cleaned up every X amount of time.
Re: People pushing cars -
Osviux - 04.01.2011
Well it was fine in the previous versions of samp. And they dont get in in the car, they just push it and it stays there. In previous version when someone pushed an empty car after sometime it went back to its previous position.
Re: People pushing cars -
GaGlets(R) - 04.01.2011
Quote:
Originally Posted by Osviux
Well it was fine in the previous versions of samp. And they dont get in in the car, they just push it and it stays there. In previous version when someone pushed an empty car after sometime it went back to its previous position.
|
That because someone used that car, car was created with createvehicle or something and wen you tried to push it it just respawned...
Re: People pushing cars -
Osviux - 04.01.2011
No. Noone used the car and it respawned because when a player pushed the ar noone was inside of it. And i used and am using AddStaticVehicleEx with a no respawn delay (-1)
Re: People pushing cars -
AF1_CLAN - 04.01.2011
Quote:
Originally Posted by Osviux
Well it was fine in the previous versions of samp. And they dont get in in the car, they just push it and it stays there. In previous version when someone pushed an empty car after sometime it went back to its previous position.
|
Yea I know what you mean but I don't know if that function was in the sa-mp versions cause I always had a timer in my script to reset cars, maybe you had something in your script that would reset their positions to default every x min/hour
But if thats a problem for you you can always just make up a timer.
Re: People pushing cars -
Elorreli - 04.01.2011
Quote:
Originally Posted by Osviux
No. Noone used the car and it respawned because when a player pushed the ar noone was inside of it. And i used and am using AddStaticVehicleEx with a no respawn delay (-1)
|
That's because it wasn't synced back then. (My guess.)
Re: People pushing cars -
Osviux - 04.01.2011
I just dont know. When the last time i had a server it was working good. When a player tried to push an empty vehicle after some time of pushing or leaving the pushed vehicle just got back to its previous position, but if a player was in the vehicle as a driver or passenger and the other player pushed the vehicle it stayed there forever unless it was drived away or respawned for some reason like death or server restart.
For short. You cant move an empty vehicle by pushing, hitting or hooking it with a vehicle that has a hook, because it gets back to its previous position. Just like you are trying to damage an empty vehicle by hitting or shooting it.
Now when a player runs into a empty vehicle and pushes it it stays where it was pushed and its very annoying because the place looks terrible because of the vehicles pushed all around.
Re: People pushing cars -
AF1_CLAN - 05.01.2011
Yea we get what your saying but we can't really do anything about it but script it ourselfs. And (if) that function ever existed then so be it plus I left sa-mp for 6 months so I don't know if that function was there, but really if that problem is bugging you, make a timer. If you need help, i'll make a code for your script in pm.
Cheers,
Ryder_[AF1]