[HELP] Kann mann einen Bot in einem GF conecten lassen=?

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
  • Ich suche ein System mit dem ich die Register/anmelde system für die bots umgehen kann, den ich habe aus dem englischen Forum ein Bot Sammlung geholt. In der Log steht auch dass sie connecten, aber nach ca 2 Sekunden verlassen sie den Server gleich wieder


    Kann mir jmd. vlt helfen dabei??


    mfg. Timo

  • Gaaaaanz einfach!
    Such nach:
    OnPlayerConnect(playerid)


    Dor fügst du folgendes ein:


    if(IsPlayerNPC(playerid))
    {
    gPlayerLogged[playerid] = 1;
    }


    Das war's schon.Kann sein das das gPlayerLogged nicht richtig ist aber so in de Art heist es bei GF's glaube ich.
    Habe schon lange kein GF-Edit mehr...
    Lg
    Hardcore

  • ich habe jezt es getestet aber fand diesess OnPlayerConnect... nicht, weil ich habe die Bots aus dem enlisch sprachigen Forum und als filterscript (also dass sind ganz viele Bots in einem fs) und dort finde ich das nicht



    fg. Timo

  • ok! ich habe es ins gm eingebaut und ohne fehler compilen können...
    doch wenn ich den server startete kamen wieder die bots und gingen aber auch gleich wieder.
    Hir mal ein ausschnitt aus den Logs:


    [16:10:17] Incoming connection: 127.0.0.1:56659
    [16:10:17] [npc:join] Boater has joined the server (0:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56660
    [16:10:17] [npc:join] Coach has joined the server (1:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56661
    [16:10:17] [npc:join] Pilot_ymtisd has joined the server (2:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56662
    [16:10:17] [npc:join] Taxi1 has joined the server (3:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56663
    [16:10:17] [npc:join] Limo2 has joined the server (5:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56664
    [16:10:17] [npc:join] Beagle has joined the server (4:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56665
    [16:10:17] [npc:join] Elegy has joined the server (6:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56666
    [16:10:17] [npc:join] Dancer3 has joined the server (7:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56667
    [16:10:17] [npc:join] Dancer1 has joined the server (8:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56669
    [16:10:17] [npc:join] Dancer4 has joined the server (9:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56668
    [16:10:17] [npc:join] Dancer5 has joined the server (10:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56671
    [16:10:17] [npc:join] Dancer2 has joined the server (11:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56670
    [16:10:17] [npc:join] Dancer8 has joined the server (12:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56673
    [16:10:17] [npc:join] Dancer6 has joined the server (13:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56674
    [16:10:17] [npc:join] Limo1 has joined the server (14:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56672
    [16:10:17] [npc:join] Dancer7 has joined the server (15:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56675
    [16:10:17] [npc:join] Tug has joined the server (16:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56676
    [16:10:17] [npc:join] Pilot_pip has joined the server (17:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56677
    [16:10:17] [npc:join] Dodo has joined the server (18:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56680
    [16:10:17] [npc:join] FBI_5 has joined the server (19:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56679
    [16:10:17] [npc:join] Dancer13 has joined the server (20:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56678
    [16:10:17] [npc:join] Stunter has joined the server (21:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56681
    [16:10:17] [npc:join] Coach2 has joined the server (22:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56682
    [16:10:17] [npc:join] Pilot_Flake has joined the server (23:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56683
    [16:10:17] [npc:join] Dancer11 has joined the server (24:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56684
    [16:10:17] [npc:join] race2 has joined the server (25:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56686
    [16:10:17] [npc:join] Dancer10 has joined the server (26:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56685
    [16:10:17] [npc:join] FBI_1 has joined the server (27:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56687
    [16:10:17] [npc:join] FBI_14 has joined the server (28:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56688
    [16:10:17] [npc:join] Security has joined the server (29:127.0.0.1)
    [16:10:17] Incoming connection: 127.0.0.1:56689
    [16:10:17] [npc:join] FBI_2 has joined the server (30:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56690
    [16:10:18] [npc:join] FBI_6 has joined the server (31:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56691
    [16:10:18] [npc:join] race has joined the server (32:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56692
    [16:10:18] [npc:join] StageDancer1 has joined the server (33:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56693
    [16:10:18] [npc:join] DrinkServer has joined the server (34:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56694
    [16:10:18] [npc:join] train_ls has joined the server (35:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56696
    [16:10:18] [npc:join] LVTaxi has joined the server (37:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56695
    [16:10:18] [npc:join] Dancer9 has joined the server (36:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56697
    [16:10:18] [npc:join] FBI_11 has joined the server (38:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56698
    [16:10:18] [npc:join] Dancer12 has joined the server (39:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56700
    [16:10:18] [npc:join] StageDancer2 has joined the server (40:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56699
    [16:10:18] [npc:join] train_sf has joined the server (41:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56701
    [16:10:18] [npc:join] train_lv has joined the server (42:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56702
    [16:10:18] [npc:join] FBI_8 has joined the server (43:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56704
    [16:10:18] [npc:join] FBI_15 has joined the server (44:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56703
    [16:10:18] [npc:join] FBI_9 has joined the server (45:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56705
    [16:10:18] [npc:join] FBI_3 has joined the server (46:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56707
    [16:10:18] [npc:join] FBI_13 has joined the server (47:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56706
    [16:10:18] [npc:join] FBI_12 has joined the server (48:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56708
    [16:10:18] [npc:join] FBI_10 has joined the server (50:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56709
    [16:10:18] [npc:join] VIPMember has joined the server (49:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56711
    [16:10:18] [npc:join] FBI_4 has joined the server (51:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56710
    [16:10:18] [npc:join] StageDancer3 has joined the server (52:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56712
    [16:10:18] [npc:join] Bystander has joined the server (53:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56714
    [16:10:18] [npc:join] FBI_7 has joined the server (54:127.0.0.1)
    [16:10:18] Incoming connection: 127.0.0.1:56713
    [16:10:18] [npc:join] Dancer14 has joined the server (55:127.0.0.1)
    [16:10:19] [npc:part] Boater has left the server (0:2)
    [16:10:19] [npc:part] Coach has left the server (1:2)
    [16:10:19] [npc:part] Pilot_ymtisd has left the server (2:2)
    [16:10:19] [npc:part] Taxi1 has left the server (3:2)
    [16:10:19] [npc:part] Beagle has left the server (4:2)
    [16:10:19] [npc:part] Limo2 has left the server (5:2)
    [16:10:19] [npc:part] Elegy has left the server (6:2)
    [16:10:19] [npc:part] Dancer3 has left the server (7:2)
    [16:10:19] [npc:part] Dancer1 has left the server (8:2)
    [16:10:19] [npc:part] Dancer4 has left the server (9:2)
    [16:10:19] [npc:part] Dancer5 has left the server (10:2)
    [16:10:19] [npc:part] Dancer2 has left the server (11:2)
    [16:10:19] [npc:part] Dancer8 has left the server (12:2)
    [16:10:19] [npc:part] Dancer6 has left the server (13:2)
    [16:10:19] [npc:part] Limo1 has left the server (14:2)
    [16:10:19] [npc:part] Dancer7 has left the server (15:2)
    [16:10:21] [npc:part] Tug has left the server (16:2)
    [16:10:21] [npc:part] Pilot_pip has left the server (17:2)
    [16:10:21] [npc:part] Dodo has left the server (18:2)
    [16:10:21] [npc:part] FBI_5 has left the server (19:2)
    [16:10:21] [npc:part] Dancer13 has left the server (20:2)
    [16:10:21] [npc:part] Stunter has left the server (21:2)
    [16:10:21] [npc:part] Coach2 has left the server (22:2)
    [16:10:21] [npc:part] Pilot_Flake has left the server (23:2)
    [16:10:21] [npc:part] Dancer11 has left the server (24:2)
    [16:10:21] [npc:part] race2 has left the server (25:2)
    [16:10:21] [npc:part] Dancer10 has left the server (26:2)
    [16:10:21] [npc:part] FBI_1 has left the server (27:2)
    [16:10:21] [npc:part] FBI_14 has left the server (28:2)
    [16:10:21] [npc:part] Security has left the server (29:2)
    [16:10:21] [npc:part] FBI_2 has left the server (30:2)
    [16:10:21] [npc:part] FBI_6 has left the server (31:2)
    [16:10:21] [npc:part] race has left the server (32:2)
    [16:10:21] [npc:part] StageDancer1 has left the server (33:2)
    [16:10:21] [npc:part] DrinkServer has left the server (34:2)
    [16:10:21] [npc:part] train_ls has left the server (35:2)
    [16:10:21] [npc:part] Dancer9 has left the server (36:2)
    [16:10:21] [npc:part] LVTaxi has left the server (37:2)
    [16:10:21] [npc:part] FBI_11 has left the server (38:2)
    [16:10:21] [npc:part] Dancer12 has left the server (39:2)
    [16:10:23] [npc:part] StageDancer2 has left the server (40:2)
    [16:10:23] [npc:part] train_sf has left the server (41:2)
    [16:10:23] [npc:part] train_lv has left the server (42:2)
    [16:10:23] [npc:part] FBI_8 has left the server (43:2)
    [16:10:23] [npc:part] FBI_15 has left the server (44:2)
    [16:10:23] [npc:part] FBI_9 has left the server (45:2)
    [16:10:23] [npc:part] FBI_3 has left the server (46:2)
    [16:10:23] [npc:part] FBI_13 has left the server (47:2)
    [16:10:23] [npc:part] FBI_12 has left the server (48:2)
    [16:10:23] [npc:part] VIPMember has left the server (49:2)
    [16:10:23] [npc:part] FBI_10 has left the server (50:2)
    [16:10:23] [npc:part] FBI_4 has left the server (51:2)
    [16:10:23] [npc:part] StageDancer3 has left the server (52:2)
    [16:10:23] [npc:part] Bystander has left the server (53:2)
    [16:10:23] [npc:part] FBI_7 has left the server (54:2)
    [16:10:23] [npc:part] Dancer14 has left the server (55:2)


    mfg. Timo

  • ich habs jezt soweit hingebracht, dass die Bots auf dem Server connecten und auch dort bleiben aber sie loggen sich mit dem befehl auch nciht ein bzw. vvlt schoon aber sie spawnen nicht an ihrem *Einsatzort* sondern ein Teil in sf am bahnhof und der andere Teil an irgend so nem bauernhof auf nem feld.


    mfg. Timo

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