Guten Tag Breadfish Community,
ich habe angefangen ein Godfather script zu editieren und bin dabei auf 4 Problemde gestoßen.
Ich hoffe ihr könnt mir da helfen.
1. Problem:
Im PD kann jeder die Türen öffnen und schließen sowie die zellen.
Hier der Pawno Quelltext:
}
}
if (strcmp("/zellezu", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0
{
MoveObject(cell0,1491.21484375,-1764.90002441,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell0 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1
{
MoveObject(cell1,1494.41210938,-1764.90002441,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell1 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2
{
MoveObject(cell2,1497.61132812,-1764.90002441,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell2 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3
{
MoveObject(cell3,1500.81445312,-1764.90002441,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell3 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4
{
MoveObject(cell4,1500.81994629,-1761.51000977,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell4 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5
{
MoveObject(cell5,1491.22094727,-1761.50000000,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell5 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6
{
MoveObject(cell6,1494.41894531,-1761.51000977,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell6 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7
{
MoveObject(cell7,1497.61999512,-1761.51000977,3284.25048828,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cell7 has been closed.");
}
}
if (strcmp("/pd", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
{
MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
{
MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been opened.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
{
MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been opened.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
{
MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been opened.");
}
}
if (strcmp("/pdc", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
{
MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
{
MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
{
MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been closed.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
{
MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been closed.");
}
2. Problem
Da ich ein neues LSPD Interior habe, ist nun das Problem, dass ich von oben nicht in die Garage kommen und von unten dann in ein anderes Interior gelange!
Wie kann ich das ändern? So das man aus der Garage in das neue PD kommt. (Man muss nicht von oben rein können nur von unten richtig)
3. Problem
Wenn sich Gangs im Gangautohaus ein Auto kaufen, wie speichere ich das dann ab?
Denn nach jedem Restart sind die autos wieder weg.
4.Problem
Wenn man in der Stadthalle einen Personal ausweiß beantragen möchte passiert nichts...
}
if(strcmp(cmdtext, "/stadthalle", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 365.2113,173.7801,1008.3828))
{
ShowPlayerDialog(playerid, DIALOG_STADTHALLE, DIALOG_STYLE_LIST, "{FFFF00}Die Stadthalle", "{FFFF00}Führerscheinprüfung (Preis: 750$)\n{FFFF00}Motorradprüfung\n{FFFF00}Personalausweis beantragen (Preis: 500$)", "Auswählen", "Beenden");
}
Ich hoffe ihr könnt mir da helfen und ich bedanke mich schonmal
Mit freundlichen Grüßen
Antony