Beiträge von RnBexclusiv

    Hier ist die definierung von IsACop
    public IsACop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
    {
    return 1;
    }
    else if(leader==1 || leader==2 || leader==3)
    {
    return 1;
    } else {
    return 0;
    }
    }
    return 1;
    }

    Ähm lol Oktabius was soll des sein? oO
    Des is mehr wie falsch würde ich sagen
    if(!strcmp("/setcop",cmdtext))
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /setcop [id]");
    return 1;
    }
    if(IsPlayerConnected(playerid))
    {
    SetPlayerSkin(playerid, 266);
    gTeam[playerid] = TEAM_Cops;
    SetPlayerColor(playerid,COLOR_Cop);
    }
    return 1;
    }


    probier es mal so

    Hey Leute,
    könnte mir bitte einer etwas scripten womit die Cops einen suchen können? Das der Gesuchte 2Min lang auf der Map angezeigt wird und dann sich der "Satellit" Wieder aufladen muss, ähnlich wie /uav.


    Mfg KavKus | D5E[Kevin]

    Why bei jedem 2 Klammern auf und Zu obwohl nur eine If abfrage drinne steht? xDD
    public checkparea(playerid)
    {
    if(PlayerToPoint(10.0, playerid, 1637.7407, -1154.3619, 23.9063))
    {
    MoveObject(Lsbauarbeitertor, 1637.734375, -1151.263428, 30.579815, 2.5);
    SetTimer("closegate", 5000, 0);
    }
    else if(PlayerToPoint(10.0, playerid, 1536.3081,-1628.3312,13.3828))
    {
    MoveObject(Lspdtor, 1539.383911, -1627.863159, 20.045971, 2.5);
    SetTimer("closegate", 5000, 0);
    }
    else if(PlayerToPoint(10.0, playerid, 1587.7832,-1633.9318,13.3828))
    {
    MoveObject(Lspdinnentor, 1590.392700, -1637.926147, 20.900719, 2.5);
    SetTimer("closegate", 5000, 0);
    }
    else if(PlayerToPoint(10.0, playerid, -1571.3778,661.5244,7.1875))
    {
    MoveObject(Sfpdtor, -1571.776611, 665.782166, 6.349410, 2.5);
    SetTimer("closegate", 5000, 0);
    }
    else if(PlayerToPoint(10.0, playerid, -1701.3805,684.2952,24.8496))
    {
    MoveObject(Sfpdtor2, -1701.716919, 689.342529, 24.052534, 2.5);
    SetTimer("closegate", 5000, 0);
    }
    return 1;
    }

    if(strcmp(cmdtext, "/autopapiere", true) == 0)
    {
    format(msg, sizeof msg, "/Autos/%d", GetPlayerVehicleID(playerid));
    new string3[128];
    new string4[128];
    new string5[128];
    new string6[128];
    if(IsPlayerInAnyVehicle(playerid))
    {
    format(string, 128, "~~~~~~ Auto Papiere ~~~~~");
    SendClientMessage(playerid, COLOR_YELLOW, string);


    format(string2, 128, "Auto Name: %s | Inhaber: %s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))- 400],dUser(msg).("user_name"));
    SendClientMessage(playerid, COLOR_GREEN, string2);


    format(string3, 128, "ModelID: %d | AutoID %d",GetVehicleModel(GetPlayerVehicleID(playerid)), GetPlayerVehicleID(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string3);


    format(string4, sizeof(string4), "Key Slot1: %s", dUser(msg).("key1_name"));
    SendClientMessage(playerid,COLOR_GREEN, string4);
    format(string5, sizeof(string5), "Key Slot2: %s", dUser(msg).("key2_name"));
    SendClientMessage(playerid,COLOR_GREEN, string5);
    format(string6, sizeof(string6), "Key Slot3: %s", dUser(msg).("key3_name"));
    SendClientMessage(playerid,COLOR_GREEN, string6);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist in keinem Wagen");
    }
    return 1;
    }


    Kann ja sein das es so geht xD