Hi ich möchte Spawns setzen im Inteieir und Autos im Bloodbowl 15 -1398.103515,937.631164,1036.479125 das ist ja eine Arena wie geht das jetzt genau ?
Wie setzte ich Spawns ins Interieur ?
- Manuel20
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
1. Irgendwie die Interior ID rausfinden (In die Blood Bowl rein oder so dann /interior)
2. Dann SetPlayerPos(playerid, deine coordinaten);
3. Dann SetPlayerInterior(playerid, Interior ID);
4. Autos rein stellen (Spawnen) parken und dann /save NOTIZ
5. AddStaticVehicle rauskopieren und unter OnGameModeInit einfügen
6. Cars definieren:
new Car1; (Ganz oben)dann bei einem Auto
Car1 = AddStaticVehicle...Dann
Unter OnGameModeInit
LinkVehicleToInterior(Car1,1);Ungetestet
-
also ich habs so :
public OnGameModeInit()
{
SetGameModeText("Derby Server 0.9");
UsePlayerPedAnims();
SetWorldTime(21);
DisableInteriorEnterExits();
SetTimer("cheat", 2000, true);
SetTimer("adminleben", 100, true);
AddPlayerClass(291, -1477.0281,943.5995,1041.5313,332.5390,0,0,0,0,0,0);
AddPlayerClass(262, -1373.5465,931.8136,1041.5313,1.4913,0,0,0,0,0,0);
AddPlayerClass(228, -1362.6002,1093.3127,1040.7902,93.8386,0,0,0,0,0,0);
AddPlayerClass(206, -1441.8079,1088.4463,1040.7969,275.8244,0,0,0,0,0,0);
AddStaticVehicle(556,-1371.7018,1089.7500,1040.5894,87.1956,65,9); //
AddStaticVehicle(557,-1379.3292,1090.1238,1040.5895,87.1956,65,9); //
AddStaticVehicle(556,-1387.2856,1090.5140,1040.5894,87.1955,65,9); //
AddStaticVehicle(557,-1395.7963,1090.9312,1040.5895,87.1955,65,9); //
AddStaticVehicle(556,-1403.4641,1091.0195,1040.5894,89.8887,65,9); //
AddStaticVehicle(557,-1411.2152,1091.0347,1040.5894,89.8888,65,9); //
AddStaticVehicle(556,-1420.1917,1091.0192,1040.5892,90.1974,65,9); //
AddStaticVehicle(557,-1432.3096,1089.8394,1040.5894,96.4373,65,9); //
AddStaticVehicle(411,-1411.3749,1097.8911,1040.5892,88.7971,65,9); //
AddStaticVehicle(411,-1400.6794,1097.7926,1040.5889,91.9125,65,9); //
AddStaticVehicle(411,-1386.9570,1098.1298,1040.5894,91.6379,65,9); //
AddStaticVehicle(411,-1277.4264,994.4549,1037.0162,89.9059,45,29); //
AddStaticVehicle(411,-1364.3240,931.7904,1036.1066,0.4981,45,29); //
AddStaticVehicle(411,-1312.8727,947.3503,1036.2938,29.2409,45,29); //
AddStaticVehicle(411,-1354.5356,1057.2579,1038.1962,171.0088,45,29); //
AddStaticVehicle(411,-1448.4911,1055.8615,1038.3341,192.6964,45,29); //
AddStaticVehicle(411,-1509.5425,1023.5461,1037.9064,233.9735,45,29); //
AddStaticVehicle(411,-1510.5381,968.6220,1036.9962,308.2877,45,29); //
AddStaticVehicle(411,-1485.6243,947.8341,1036.5940,334.7073,45,29); //
LinkVehicleToInterior(0, 15);
LinkVehicleToInterior(1, 15);
LinkVehicleToInterior(2, 15);
LinkVehicleToInterior(3, 15);
LinkVehicleToInterior(4, 15);
LinkVehicleToInterior(5, 15);
LinkVehicleToInterior(6, 15);
LinkVehicleToInterior(7, 15);
LinkVehicleToInterior(8, 15);
LinkVehicleToInterior(9, 15);
LinkVehicleToInterior(10, 15);
LinkVehicleToInterior(11, 15);
LinkVehicleToInterior(12, 15);
LinkVehicleToInterior(13, 15);
LinkVehicleToInterior(14, 15);
LinkVehicleToInterior(15, 15);
LinkVehicleToInterior(16, 15);
LinkVehicleToInterior(17, 15);
LinkVehicleToInterior(18, 15);
LinkVehicleToInterior(19, 15);
return 1;
}und bei spawn so :
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,308.261749, 2528.727783, 16.816020);
SetPlayerFacingAngle(playerid, 179.004608);
SetPlayerCameraPos(playerid, 308.124847, 2523.134033, 16.750083);
SetPlayerCameraLookAt(playerid, 308.261749, 2528.727783, 16.816020);
SetPlayerInterior(playerid, 15);
if(!classid)
{
glob0[playerid] = 0;
GameTextForPlayer(playerid, "~b~Monster Truck Derby", 2000, 5);
}
if(classid == 1)
{
glob0[playerid] = 0;
GameTextForPlayer(playerid, "~b~Monster Truck Derby", 2000, 5);
}
if(classid == 2)
{
glob0[playerid] = 1;
GameTextForPlayer(playerid, "~r~Infernus Race", 2000, 5);
}
if(classid == 3)
{
glob0[playerid] = 1;
GameTextForPlayer(playerid, "~r~Infernus Race", 2000, 5);
}
return 1;
}stimmt das so ?? Oo