Problem mit Tor befehl -.-

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
  • Hallo Liebe Com,


    ich habe einen Problem mit meinem Tor Befehl der aus mehreren Toren besteht (er ist 209 Zeilen groß).


    if(strcmp(cmd,"/tor",true) == 0 || strcmp(cmd,"/gate",true) == 0)//die tore
    {
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)//LSPD Schranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1544.6999512,-1630.9000244,13.1999998))
    {
    MoveObject(LSPDSchranke,1544.6992188,-1630.8994141,13.1999998,5.0);
    SetTimer("CloseLSPDSchranke", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)//LSPD Tor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1592.8564453125, -1638.0677490234, 14.912221908569))
    {
    MoveObject(LSPDTor,1592.8564453125, -1638.0677490234, 14.912221908569-10,5.0);
    SetTimer("CloseLSPDTor", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1747.0000000,-1141.4000244,25.5000000))
    {
    MoveObject(SARDTor1,1747.0000000,-1141.4000244,25.5000000-10,3.0);
    SetTimer("CloseSARDTor1", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1729.5000000,-1141.1999512,25.5000000))
    {
    MoveObject(SARDTor2,1729.5000000,-1141.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor2", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1763.7998047,-1141.2998047,25.5000000))
    {
    MoveObject(SARDTor3,1763.7998047,-1141.2998047,25.5000000-10,3.0);
    SetTimer("CloseSARDTor3", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1781.6999512,-1141.3000488,25.5000000))
    {
    MoveObject(SARDTor4,1781.6999512,-1141.3000488,25.5000000-10,3.0);
    SetTimer("CloseSARDTor4", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1781.3000488,-1096.0000000,25.5000000))
    {
    MoveObject(SARDTor5,1781.3000488,-1096.0000000,25.5000000-10,3.0);
    SetTimer("CloseSARDTor5", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1763.8000488,-1096.0999756,25.5000000)
    {
    MoveObject(SARDTor6,1763.8000488,-1096.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor6", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1746.5000000,-1096.1999512,25.5000000))
    {
    MoveObject(SARDTor7,1746.5000000,-1096.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor7", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1729.5000000,-1096.0999756,25.5000000))
    {
    MoveObject(SARDTor8,1729.5000000,-1096.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor8", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1712.1999512,-1096.1999512,25.5000000))
    {
    MoveObject(SARDTor9,1712.1999512,-1096.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor9", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1712.5000000,-1141.0999756,25.5000000))
    {
    MoveObject(SARDTor10,1712.5000000,-1141.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor10", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrSchranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1694.8994141,-1141.0000000,23.8999996))
    {
    MoveObject(SARDTor11,1694.8994141,-1141.0000000,23.8999996-10,3.0);
    SetTimer("CloseSARDTor11", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//Feuerwehr Schranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1738.0996094,-1065.2998047,23.7999992))
    {
    MoveObject(SARDTor12,1738.0996094,-1065.2998047,23.7999992-10,3.0);
    SetTimer("CloseSARDTor12", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,321.3999939,-1188.3000488,77.0000000))
    {
    MoveObject(PremiumHausLS1,321.3999939,-1188.3000488,77.0000000-10,3.0);
    SetTimer("ClosePremiumHausLS1", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1245.5000000,-767.2000122,93.8000031))
    {
    MoveObject(PremiumHausLS2,1245.5000000,-767.2000122,93.8000031-10,3.0);
    SetTimer("ClosePremiumHausLS2", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1281.5000000,-615.0000000,104.8000031))
    {
    MoveObject(PremiumHausLS3,1281.5000000,-615.0000000,104.8000031-10,3.0);
    SetTimer("ClosePremiumHausLS3", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1003.2000122,-643.9000244,122.0000000))
    {
    MoveObject(PremiumHausLS4,1003.2000122,-643.9000244,122.0000000-10,3.0);
    SetTimer("ClosePremiumHausLS4", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,210.0000000,-1349.3000488,52.5000000))
    {
    MoveObject(PremiumHausLS5,210.0000000,-1349.3000488,52.5000000-10,3.0);
    SetTimer("ClosePremiumHausLS5", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,260.3999939,-1336.0000000,52.2000008))
    {
    MoveObject(PremiumHausLS6,260.3999939,-1336.0000000,52.2000008,3.0);
    SetTimer("ClosePremiumHausLS6", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,282.7000122,-1320.3000488,55.5999985))
    {
    MoveObject(PremiumHausLS7,282.7000122,-1320.3000488,55.5999985-10,3.0);
    SetTimer("ClosePremiumHausLS7", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1534.4000244,-1452.0000000,15.1999998))
    {
    MoveObject(PremiumHausLS8,1534.4000244,-1452.0000000,15.1999998-10,3.0);
    SetTimer("ClosePremiumHausLS8", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,262.1000061,-1231.4000244,74.4000015))
    {
    MoveObject(PremiumHausLS9,262.1000061,-1231.4000244,74.4000015-10,3.0);
    SetTimer("ClosePremiumHausLS9", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    }


    Wenn ich compile kommen diese Errors:


    C:\Users\Daniel\Documents\Scripte\BwG\pawno\include\M_Bot.inc(163) : error 017: undefined symbol "IsAnAdmin"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(4456) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(4496) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(4537) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(5165) : error 017: undefined symbol "OnPlayerCarLogin"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(5384) : error 017: undefined symbol "ShowConInfo"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(6753) : error 017: undefined symbol "GW_OnPlayerDisconnect"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(6759) : error 017: undefined symbol "OnPlayerCarUpdate"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(6831) : error 017: undefined symbol "RemoveBlitzer"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7025) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7032) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7045) : error 017: undefined symbol "RemoveRoadblock"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7056) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7121) : error 017: undefined symbol "SetPlayerToKnast"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7455) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7733) : error 017: undefined symbol "GW_OnPlayerDeath"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(7783) : error 004: function "StopPlayerBurning" is not implemented
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8002) : error 017: undefined symbol "IsPlayerInArea"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8110) : error 017: undefined symbol "IsPlayerInArea"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8155) : error 017: undefined symbol "GW_OnPlayerSpawn"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8663) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8667) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8819) : error 017: undefined symbol "PreloadAnimLib"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8820) : error 017: undefined symbol "PreloadAnimLib"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8821) : error 017: undefined symbol "PreloadAnimLib"
    C:\Users\Daniel\Documents\Scripte\BwG\gamemodes\BwG.pwn(8822) : error 017: undefined symbol "PreloadAnimLib"


    und wenn ich den Befehl rausnehme, dann kommen keine Errors.
    Kann mir jemand helfen? :S

  • Schau mal bei(hier) Zeile 120 - 127:


    richtig müsste es warscheinlich so gehen:



    if(strcmp(cmd,"/tor",true) == 0 || strcmp(cmd,"/gate",true) == 0)//die tore
    {
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)//LSPD Schranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1544.6999512,-1630.9000244,13.1999998))
    {
    MoveObject(LSPDSchranke,1544.6992188,-1630.8994141,13.1999998,5.0);
    SetTimer("CloseLSPDSchranke", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)//LSPD Tor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1592.8564453125, -1638.0677490234, 14.912221908569))
    {
    MoveObject(LSPDTor,1592.8564453125, -1638.0677490234, 14.912221908569-10,5.0);
    SetTimer("CloseLSPDTor", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1747.0000000,-1141.4000244,25.5000000))
    {
    MoveObject(SARDTor1,1747.0000000,-1141.4000244,25.5000000-10,3.0);
    SetTimer("CloseSARDTor1", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1729.5000000,-1141.1999512,25.5000000))
    {
    MoveObject(SARDTor2,1729.5000000,-1141.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor2", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1763.7998047,-1141.2998047,25.5000000))
    {
    MoveObject(SARDTor3,1763.7998047,-1141.2998047,25.5000000-10,3.0);
    SetTimer("CloseSARDTor3", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1781.6999512,-1141.3000488,25.5000000))
    {
    MoveObject(SARDTor4,1781.6999512,-1141.3000488,25.5000000-10,3.0);
    SetTimer("CloseSARDTor4", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1781.3000488,-1096.0000000,25.5000000))
    {
    MoveObject(SARDTor5,1781.3000488,-1096.0000000,25.5000000-10,3.0);
    SetTimer("CloseSARDTor5", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1763.8000488,-1096.0999756,25.5000000)
    {
    MoveObject(SARDTor6,1763.8000488,-1096.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor6", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1746.5000000,-1096.1999512,25.5000000))
    {
    MoveObject(SARDTor7,1746.5000000,-1096.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor7", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1729.5000000,-1096.0999756,25.5000000))
    {
    MoveObject(SARDTor8,1729.5000000,-1096.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor8", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1712.1999512,-1096.1999512,25.5000000))
    {
    MoveObject(SARDTor9,1712.1999512,-1096.1999512,25.5000000-10,3.0);
    SetTimer("CloseSARDTor9", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrTor
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1712.5000000,-1141.0999756,25.5000000))
    {
    MoveObject(SARDTor10,1712.5000000,-1141.0999756,25.5000000-10,3.0);
    SetTimer("CloseSARDTor10", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//FeuerwehrSchranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1694.8994141,-1141.0000000,23.8999996))
    {
    MoveObject(SARDTor11,1694.8994141,-1141.0000000,23.8999996-10,3.0);
    SetTimer("CloseSARDTor11", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(IsPlayerInFrac(playerid,4) || PlayerInfo[playerid][pAdmin] >= 5)//Feuerwehr Schranke
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1738.0996094,-1065.2998047,23.7999992))
    {
    MoveObject(SARDTor12,1738.0996094,-1065.2998047,23.7999992-10,3.0);
    SetTimer("CloseSARDTor12", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }//HIER WAR DER FEHLER WÜRDE ICH MEINEN, DIE KLAMMER HABE ICH GESETZT!
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,321.3999939,-1188.3000488,77.0000000))
    {
    MoveObject(PremiumHausLS1,321.3999939,-1188.3000488,77.0000000-10,3.0);
    SetTimer("ClosePremiumHausLS1", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1245.5000000,-767.2000122,93.8000031))
    {
    MoveObject(PremiumHausLS2,1245.5000000,-767.2000122,93.8000031-10,3.0);
    SetTimer("ClosePremiumHausLS2", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1281.5000000,-615.0000000,104.8000031))
    {
    MoveObject(PremiumHausLS3,1281.5000000,-615.0000000,104.8000031-10,3.0);
    SetTimer("ClosePremiumHausLS3", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1003.2000122,-643.9000244,122.0000000))
    {
    MoveObject(PremiumHausLS4,1003.2000122,-643.9000244,122.0000000-10,3.0);
    SetTimer("ClosePremiumHausLS4", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,210.0000000,-1349.3000488,52.5000000))
    {
    MoveObject(PremiumHausLS5,210.0000000,-1349.3000488,52.5000000-10,3.0);
    SetTimer("ClosePremiumHausLS5", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,260.3999939,-1336.0000000,52.2000008))
    {
    MoveObject(PremiumHausLS6,260.3999939,-1336.0000000,52.2000008,3.0);
    SetTimer("ClosePremiumHausLS6", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,282.7000122,-1320.3000488,55.5999985))
    {
    MoveObject(PremiumHausLS7,282.7000122,-1320.3000488,55.5999985-10,3.0);
    SetTimer("ClosePremiumHausLS7", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1534.4000244,-1452.0000000,15.1999998))
    {
    MoveObject(PremiumHausLS8,1534.4000244,-1452.0000000,15.1999998-10,3.0);
    SetTimer("ClosePremiumHausLS8", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 5)//PremiumHausLS
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0,262.1000061,-1231.4000244,74.4000015))
    {
    MoveObject(PremiumHausLS9,262.1000061,-1231.4000244,74.4000015-10,3.0);
    SetTimer("ClosePremiumHausLS9", 5000, 0);
    SendClientMessage(playerid, COLOR_YELLOW,"Das Tor öffnet sich, es schließt sich in 5 Sekunden!");
    }
    }
    }


    PS: Einrücken musst du dann aber selber machen. Probier es mal aus! ;)