How can i spawn a specific player in a specific vehicle ?
#7

Quote:
Originally Posted by jameskmonger
Skin id? YOU PUT THE SEAT ID.

Right, at the top of your script, put this:
pawn Код:
new spawncar;
Then in OnGameModeInit, put this:
pawn Код:
spawncar = CreateVehicle(ModelID, COORD X, COORD Y, COORD Z, COORD A, Car Color 1, Car Color 2, 1);
To find the modelid, go here:
https://sampwiki.blast.hk/wiki/Category:Vehicle
To find the Car Colors 1 and 2, go here:
https://sampwiki.blast.hk/wiki/Color_ID

Then, in OnPlayerSpawn, put this:
pawn Код:
PutPlayerInVehicle(playerid,spawncar,1);
pawn Код:
PutPlayerInVehicle(playerid,spawncar,1);
Puts the player in a passenger seat. Try this:

pawn Код:
PutPlayerInVehicle(playerid,spawncar,0);

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)