spawned car creating multiple
#1

I have started to work on my spawn car coords and since i have gotten the car i want in game right on grove street, every time i go in my server or if someone joins, it spawns my one car one after another right on top of each other. Total of maybe 4 stacked up lol Its not pro code or anything, i am just still working on the basics. Is it because there are four floats?

The Code:
http://pastebin.com/uxTHEUDC

http://imgur.com/HoxEAvV
Reply
#2

In your code you have:
pawn Код:
AddStaticVehicle(600,2511.0559,-1671.5609,13.1509,354.3130,43,8);
under OnPlayerRequestClass; it is vehicle related, thus it should be under OnGameModeInit, at least for how you are using it.
Reply
#3

If you want to spawn a certain vehicle once a player spawns, do:

CreateVehicle - It's bassicly a function that spawns a car instantly without spamming it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)