Tore

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 ,also ich hab ne farage ich mochte 1 gate das aus 2 torn besteht mit 1nem fs und mit einem befehl öffenen das eine tor hab ich aber ka wie ich das in dem fs rein tu also wo ich dans rein tun sollk?Pls helft mir #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986, 1548.804443, -1632.485352, 14.093480, 0.0000, 0.0000, 90.0000);


    print("\n--------------------------------------");
    print(" Blank Filterscript by W4nnA");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdauf", true) == 0){
    MoveObject(y_gate,1548.804443, -1634.387207, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdzu", true) == 0){
    MoveObject(y_gate,1548.804443, -1632.485352, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    return 0;
    }

  • ok aslo wen hilf nochmal ich möchte diese 2 scripts zusammen füghen damit mans ei mit 1nem befehl beide objecte öffnen kann
    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986, 1548.804443, -1632.485352, 14.093480, 0.0000, 0.0000, 90.0000);


    print("\n--------------------------------------");
    print(" Blank Filterscript by W4nnA");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdauf", true) == 0){
    MoveObject(y_gate,1548.804443, -1634.387207, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdzu", true) == 0){
    MoveObject(y_gate,1548.804443, -1632.485352, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    return 0;
    }


    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(986, 1548.832520, -1624.447632, 14.093480, 0.0000, 0.0000, 270.0000);


    print("\n--------------------------------------");
    print(" Blank Filterscript by W4nnA");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdauf", true) == 0){
    MoveObject(y_gate,1548.837891, -1620.062988, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    if (strcmp(cmdtext, "/pdzu", true) == 0){
    MoveObject(y_gate,1548.832520, -1624.447632, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    return 1;
    }
    return 0;
    }

  • #include <a_samp>


    #pragma tabsize 4
    #define COLOR_YELLOW 0xFFFF00AA
    new y_gate[2];




    public OnFilterScriptInit()
    {
    y_gate[0] = CreateObject(986, 1548.804443, -1632.485352, 14.093480, 0.0000, 0.0000, 90.0000);
    y_gate[1] = CreateObject(986, 1548.832520, -1624.447632, 14.093480, 0.0000, 0.0000, 270.0000);



    print("\n--------------------------------------");
    print(" Blank Filterscript by W4nnA");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdauf", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5, 1548.804443, -1632.485352, 14.093480))
    {
    MoveObject(y_gate[0],1548.804443, -1634.387207, 5.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5, 1548.832520, -1624.447632, 14.093480))
    {
    MoveObject(y_gate[1],1548.832520, -1624.447632, 5.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    return 1;
    }
    if (strcmp(cmdtext, "/pdzu", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5, 1548.804443, -1632.485352, 14.093480))
    {
    MoveObject(y_gate[0],1548.804443, -1632.485352, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5, 1548.832520, -1624.447632, 14.093480))
    {
    MoveObject(y_gate[1],1548.832520, -1624.447632, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    return 1;
    }
    return 0;
    }

  • aber jetz sind error wen ich die amx erstellen will ??

    Code
    C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\lspd1.pwn(30) : error 017: undefined symbol "IsPlayerInRangeOfPoint"
    C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\lspd1.pwn(35) : error 017: undefined symbol "IsPlayerInRangeOfPoint"
    C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\lspd1.pwn(44) : error 017: undefined symbol "IsPlayerInRangeOfPoint"
    C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\lspd1.pwn(49) : error 017: undefined symbol "IsPlayerInRangeOfPoint"
  • #include <a_samp>


    #pragma tabsize 4
    #define COLOR_YELLOW 0xFFFF00AA
    new y_gate[2];




    public OnFilterScriptInit()
    {
    y_gate[0] = CreateObject(986, 1548.804443, -1632.485352, 14.093480, 0.0000, 0.0000, 90.0000);
    y_gate[1] = CreateObject(986, 1548.832520, -1624.447632, 14.093480, 0.0000, 0.0000, 270.0000);



    print("\n--------------------------------------");
    print(" Blank Filterscript by W4nnA");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/pdauf", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5, 1548.804443, -1632.485352, 14.093480))
    {
    MoveObject(y_gate[0],1548.804443, -1634.387207, 5.093480,4);
    MoveObject(y_gate[1],1548.832520, -1624.447632, 5.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    return 1;
    }
    if (strcmp(cmdtext, "/pdzu", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5, 1548.804443, -1632.485352, 14.093480))
    {
    MoveObject(y_gate[0],1548.804443, -1632.485352, 14.093480,4);
    MoveObject(y_gate[1],1548.832520, -1624.447632, 14.093480,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Nur Für Cops!");
    }
    return 1;
    }
    return 0;
    }


    Würde es so machen

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen