24.10.2009, 11:09
hello,
How can i make that a Players Spawns in a Vehicle?
Regrads
Gforce
How can i make that a Players Spawns in a Vehicle?
Regrads
Gforce
public OnPlayerSpawn(playerid) { new car; CreateVehicle(car, 0.0, 0.0, 0.0, 1, 1, 10000); PutPlayerInVehicle(playerid, car, 0); }
Originally Posted by ╔Jigsaw╗
Code:
public OnPlayerSpawn(playerid) { new car; CreateVehicle(car, 0.0, 0.0, 0.0, 1, 1, 10000); PutPlayerInVehicle(playerid, car, 0); } |
car = CreateVehicle(VEHICLE_ID, FLOAT_X, FLOAT_Y, FLOAT_Z, R, COLOR_1, COLOR_2, RESPAWN_TIME); // fill it in.
public OnPlayerSpawn(playerid)
{
new car;
car = 502; // Hotring racer
CreateVehicle(car, 0.0, 0.0, 0.0, -1, -1, 10000);
PutPlayerInVehicle(playerid, car, 0);
return true;
}