SA-MP Forums Archive
[HELP] Problem with car spawns. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Problem with car spawns. (/showthread.php?tid=82434)



[HELP] Problem with car spawns. - cigo - 18.06.2009

I have saved cars all around SA, added them to my gm, but now cars are not spawning - server is empty of cars?
what can i do to make them spawn?


Re: [HELP] Problem with car spawns. - Ignas1337 - 18.06.2009

where did you put the code to spawn the cars? Could you pastebin.ca your script so we could see?


Re: [HELP] Problem with car spawns. - Abernethy - 18.06.2009

Using
pawn Код:
AddStaticVehicle(/*VEHID, X, Y, Z, R, COLOR1, COLOR2*/);
CreateVehicle(/*VEHID, X, Y, Z, R, COLOR1, COLOR2, RESPAWN_TIME*/);
?


Re: [HELP] Problem with car spawns. - cigo - 18.06.2009

it was ok all time, one day i joined my server and there were not any cars.

this is one example. how my car codes look like:

Код:
AddStaticVehicle(551,-1946.9061,269.4415,40.8538,91.8952,45,116);



Re: [HELP] Problem with car spawns. - Grim_ - 18.06.2009

Can you show use your whole OnGameModeInit callback?


Re: [HELP] Problem with car spawns. - cigo - 18.06.2009

Код:
public OnGameModeInit()
{



Re: [HELP] Problem with car spawns. - madmatty - 18.06.2009

Quote:
Originally Posted by Thanatos
where did you put the code to spawn the cars? Could you pastebin.ca your script so we could see?
hey buddy check out wiki site ****** it wiki samp awesome for new scripters


Re: [HELP] Problem with car spawns. - cigo - 19.06.2009

any ideas? pls help... just say what could be wrong

EDIT: Cars are not spawning in other fs's too...


Re: [HELP] Problem with car spawns. - KeyWay - 19.06.2009

Quote:
Originally Posted by cigo
Код:
public OnGameModeInit()
{
EPIC FAIL.
Quote:
Originally Posted by madmatty
Quote:
Originally Posted by Thanatos
where did you put the code to spawn the cars? Could you pastebin.ca your script so we could see?
hey buddy check out wiki site ****** it wiki samp awesome for new scripters
ANOTHER EPIC FAIL.

Im sure he meant that where under did you put the vehicles...



+ You might check your VirtualWorld, you might have different VirtualWorld. Check the OnPlayerSpawn.


Re: [Solved] Problem with car spawns. - cigo - 19.06.2009

thank you, it was my fault !