Create Vehicle
#1

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
Reply
#2

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

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.
Reply
#4

I'm sorry
English is not my native language.

Thank you For Help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)