SA-MP Forums Archive
Create Vehicle - 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)
+--- Thread: Create Vehicle (/showthread.php?tid=495460)



Create Vehicle - Miladajir - 17.02.2014

Hello
I brought the car into the server.
But I can not do anything.

The code gamemode :
Код:
public OnVehicleSpawn(vehicleid)
{
   CreateVehicle(416, -2546.1802, 622.2143, 14.6557, 90.8200, -1, -1, 100);
	return 1;
}
/////////////////////////////////////////////// Warn
D:\GTA 5\GTA.San.Andreas - Server\pawno\global.pwn(77) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
---------------------------------------------------
What can I do to cars made ​​by me appears in the server?
Thank You


Re: Create Vehicle - [RO]Five - 17.02.2014

Код:
public OnVehicleSpawn(vehicleid)
{
	CreateVehicle(416, -2546.1802, 622.2143, 14.6557, 90.8200, -1, -1, 100);
	return 1;
}



Re: Create Vehicle - Konstantinos - 17.02.2014

https://sampwiki.blast.hk/wiki/AddStaticVehicle

Create them with AddStaticVehicle in OnGameModeInit. What you posted above is really bad idea. Everytime a vehicle will respawn, it will create a vehicle on that coordinates.


Re: Create Vehicle - Miladajir - 17.02.2014

I'm sorry
English is not my native language.

Thank you For Help