Hab ich auch erst gedacht aber ich find kein KlammerFehler
Ich poste euch mal die PTP(PlayerToPoint) die ich zuletzt gemacht habe ( es ist übrigens GodFather):
Das da unter /exit
else if (PlayerToPoint(8.0, playerid, 246.40,110.84,1003.22))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1511.6355,24.9219,236.2760);
}
Das da am Ende von /enter
else if (PlayerToPoint(8.0, playerid,311.0392,-1516.2980,24.9219))
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,246.40,110.84,1003.22);
GameTextForPlayer(playerid, "~w~FBI HQ", 5000, 1);
}
}
return 1;
}
Neuer Befehl:
if (strcmp(cmdtext, "/aufzug", true)==0)
{
if (PlayerToPoint(10.0, playerid, 304.3325,-1518.1571,76.5362))
{
SetPlayerPos(playerid, 316.9240,-1508.1586,24.9219);
SendClientMessage(playerid, COLOR_GREEN, "Du bist wieder unten!");
}
else if (PlayerToPoint(10.0, playerid, 316.9240,-1508.1586,24.9219))
{
SendClientMessage(playerid, COLOR_GREEN, "Du bist nun auf dem Helikopter Platz!");
SetPlayerPos(playerid, 304.3325,-1518.1571,76.5362);
}
return 1;
}
Und hier ein /torauf Befehl :
if (strcmp(cmdtext, "/torauf", true)==0) {
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LCN
{
if (PlayerToPoint(30.0, playerid, 1294.169434, -2061.102539, 65.433678)) { // Zeile 8221
MoveObject(lcntor1,1294.144531, -2052.262695, 65.444069, 2.0);
MoveObject(lcntor2,1294.169434, -2061.102539, 65.433678, 2.0);
SetTimer("gatecloselcn", 25000, 0);
SendClientMessage(playerid, 0x0800DFFF, "Das Tor schliest automatisch.");
}
else {
SendClientMessage(playerid,COLOR_RED, "Du bist zu weit entfernt.");}}
else if(IsACop(playerid)) {
if (PlayerToPoint(10.0, playerid, 1588.506226, -1638.000488, 6.669783)) { // Zeile 8221
MoveObject(lspdtor, 1588.506226, -1638.000488, 6.669783, 5.0);
SetTimer("torzu", 15000, 0);
SendClientMessage(playerid, 0x0800DFFF, "Das Tor schliest automatisch.");
}
else {
SendClientMessage(playerid,COLOR_RED, "Du bist zu weit entfernt.");}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6){
if (PlayerToPoint(30.0, playerid, 701.723328, -1415.883301, 14.250707)) {
MoveObject(yakuzator1, 701.723328, -1415.883301, 14.250707, 5.0);
MoveObject(yakuzator2, 715.530762, -1415.850830, 14.241000, 5.0);
SetTimer("gateclose", 25000, 0);
SendClientMessage(playerid, COLOR_RED, "Das Tor schliest automatisch");}}
/*else {
SendClientMessage(playerid,COLOR_RED, "Du bist zu weit entfernt.");}*/
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2){
if(PlayerToPoint(10.0, playerid, 310.251434, -1556.568115, 29.318459)) {
SetTimer("gateclosefbi", 10000, 0);
SendClientMessage(playerid, COLOR_GREEN, "Das Tor geht automatisch zu.");
MoveObject(fbitor1, 310.301727, -1556.464355, 25.228739, 3.0);}
if(PlayerToPoint(10.0, playerid, 363.872833, -1468.346558, 28.972393)) {
MoveObject(fbitor2, 363.858398, -1468.368164, 24.425608, 3.0);
SetTimer("gateclosefbi", 10000, 0);
SendClientMessage(playerid, COLOR_GREEN, "Das Tor geht automatisch zu.");}}
return 1;
}