16.01.2010, 00:37
How can i spawn a specific player in a specific vehicle ? Or like hte soldier in a tank and the tero in a car ? I hope i get help . Thank You !
CreateVehicle(modelif, x.x, y.y, z.z, a.a, color1, color2, respawn_delay);
PutPlayerInVehicle(playerid, v1, 0); // playerid == player, v1 == vehicle, 0 == seatid
Originally Posted by SAWC™
We need a vehicle
pawn Код:
pawn Код:
|
new spawncar;
spawncar = CreateVehicle(ModelID, COORD X, COORD Y, COORD Z, COORD A, Car Color 1, Car Color 2, 1);
PutPlayerInVehicle(playerid,spawncar,1);
Originally Posted by jameskmonger
Skin id? YOU PUT THE SEAT ID.
Right, at the top of your script, put this: pawn Код:
pawn Код:
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 Код:
|
Originally Posted by jameskmonger
Skin id? YOU PUT THE SEAT ID.
Right, at the top of your script, put this: pawn Код:
pawn Код:
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);
PutPlayerInVehicle(playerid,spawncar,0);