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!