Hei,
Ich habe ein Problem, das Tor geht nicht auf, ich habe keine Errors / Warnings im Script:
if(strcmp(cmd, "/tor", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,15, 1269.5243,-1739.6387,9.2575))//LSPD VORNE
if(IsACop(playerid))
{
if(LSPDV == false)
{
MoveDynamicObject(LSPDVorne, 1265.50745, -1741.37561, 8.55632, 4.0),
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 15.0);
LSPDV = true;
}
else if(LSPDV == true)
{
MoveDynamicObject(LSPDVorne, 1265.50745, -1741.37561, 3.36467, 4.0);
LSPDV = false;
}
}
if(IsPlayerInRangeOfPoint(playerid,15, 1255.4049,-1836.4008,13.5387))//LSPD HINTEN
if(IsACop(playerid))
{
if(LSPDH == false)
{
MoveDynamicObject(LSPDHinten, 1259.17664, -1838.16882, 13.45650, 4.0),
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 15.0);
LSPDH = true;
}
else if(LSPDH == true)
{
MoveDynamicObject(LSPDHinten, 1258.92261, -1838.12805, 13.45753, 4.0);
LSPDH = false;
}
}