Beiträge von T.B3X

    Hab ein problem und zwar wenn ich ingame auf ein bike steige dann wird der helm nicht angezeit woran liegt das.


    #define SLOT 1


    bei inplayerstatechange habe ich das


    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
    new newcar = GetPlayerVehicleID(playerid);
    if(IsAMotorrad(newcar))
    {
    if(PlayerInfo[playerid][pBikeLic] != 1)
    {
    if(TakingLesson[playerid] == 1)
    {
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Motorradschein !");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid, 1);
    return 1;
    }
    {
    switch(GetPlayerSkin(playerid))
    {
    #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
    case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
    case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
    case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
    case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
    case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
    case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
    case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
    case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
    case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
    case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
    case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
    case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
    case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
    }
    }
    }
    }
    else
    {
    RemovePlayerAttachedObject(playerid, SLOT);
    }
    }


    uns is a motorrad habe ich das


    public IsAMotorrad(carid)
    {
    new Model = GetVehicleModel(carid);
    if(Model == 461 || Model == 463 || Model == 468 || Model == 521 || Model == 522 || Model == 581 || Model == 586)
    {
    return 1;
    }
    return 0;
    }


    hat wer nen tipp

    bei mir startet es garnicht plugin eingefügt ich raffe nicht wieso es nicht geht hat wer ne ahnung


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [19:40:08]
    [19:40:08] Server Plugins
    [19:40:08] --------------
    [19:40:08] Loading plugin: streamer
    [19:40:08]


    *** Streamer Plugin v2.3.7 by Incognito loaded ***



    [19:40:08] Loaded.
    [19:40:08] Loaded 1 plugins.


    [19:40:08]
    [19:40:08] Filter Scripts
    [19:40:08] ---------------
    [19:40:08] Loading filter script 'base.amx'...
    [19:40:08]
    --Base FS loaded.


    [19:40:08] Loading filter script 'gl_actions.amx'...
    [19:40:08] Loaded 2 filter scripts.


    [19:40:09] Script[gamemodes/fusion.amx]: Run time error 19: "File or function is not found"
    [19:40:09] Number of vehicle models: 0
    [19:40:13] --- Server Shutting Down.
    [19:40:13]


    *** Streamer Plugin v2.3.7 by Incognito unloaded ***




    und wie läuft das mit mysql das Script ist doch auf Mysql aber in welcher datenbank wird es gespeichert?

    Guten Tag,
    hat vllt jemand ne idee wie das geht ne person so zu bannen das er sich nie wieder einloggen bzw. registrieren kann auch nicht nach nem router restart
    also das mit /rcon banip geht nicht wiel dann nach router restart er sich wieder registrieren kann. Also für immer weg vom fenster. hat wer ne idee

    bin anfänger habe keine richtige ahnung hier meine /invite schnipsel
    if(strcmp(cmd, "/invite", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /invite [playerid/PartOfName]");
    return 1;
    }
    new para1;
    new ftext[25];
    para1 = ReturnUser(tmp);
    if (PlayerInfo[playerid][pLeader] >= 1)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
    if(PlayerInfo[para1][pJob] > 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler hat einen Job !");
    return 1;
    }
    if(RequestJobMoney[para1]==1)
    {
    SendClientMessage(para1, COLOR_GREY, "Du hast nun einen Job, und dein Arbeitslosengeld ist gekündigt.");
    RequestJobMoney[para1]=0;
    }
    if(PlayerInfo[para1][pJobLock] >= 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du kannst ihn nicht inviten, der Spieler hat Jobsperre !");
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
    else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
    else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
    else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Medic"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
    else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
    else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "21st Street"; ChosenSkin[para1] = 115; SetPlayerSkin(para1, 115); }
    else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
    else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "CNN Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
    else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Unternehmen"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
    else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Fahrschule"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
    else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Groove Street Family"; ChosenSkin[para1] = 107; SetPlayerSkin(para1, 107); }
    else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122); }
    else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "ADAC"; ChosenSkin[para1] = 50; SetPlayerSkin(para1, 50); PlayerInfo[para1][pJob] = 7; }
    else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Transporter"; ChosenSkin[para1] = 294; SetPlayerSkin(para1, 294); }
    else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Special Force"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
    else if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Terroristen"; ChosenSkin[para1] = 142; SetPlayerSkin(para1, 142); }
    else if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "San Trans"; ChosenSkin[para1] = 128; SetPlayerSkin(para1, 128); PlayerInfo[para1][pJob] = 16;}
    else { return 1; }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
    PlayerInfo[para1][pRank] = 1;
    printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
    format(string, sizeof(string), "Du bist der Fraktion %s beigetreten. Leader %s hat dich eingeladen.", ftext, sendername);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "Du hast %s in die Fraktion %s eingeladen.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SetPlayerInterior(para1,0);
    new rand = random(sizeof(gInviteSpawns));
    SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
    SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    TogglePlayerControllable(para1, 0);
    SelectChar[para1] = 255;
    SelectCharID[para1] = PlayerInfo[para1][pMember];
    SelectCharPlace[para1] = 1;
    PlayerInfo[para1][pJob] = 0;
    new month2, day2;
    getdate(year, month2, day2);
    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    PlayerInfo[para1][pChar] = ChosenSkin[para1];
    PlayerInfo[para1][pJobInvite] = 1;
    PlayerInfo[para1][pJobInviteDate] = day2;
    PlayerInfo[para1][pJobInviteMonth] = month2;
    SendClientMessage(para1, COLOR_LIGHTRED, "* Benutze 'next' um den Character auszuwählen den du benutzen willst.");
    SendClientMessage(para1, COLOR_LIGHTRED, "* Wen du den richtigen gefunden hast, gib 'done' ein.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team / or already a Family Member.");
    return 1;
    }
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Leader einer Fraktion.");
    }
    }
    return 1;
    }

    guten tag,
    könntet ihr mir helfen im gf das es so ist wenn ein leader jemanden invitet er nicht dirtekt drinne ist sondern man es als user erst mit /accept invite akzepttieren muss


    könntet ihr mir bitte dabei helfen

    C:\DOKUME~1\MICHAE~1\Desktop\ddg\DDG.pwn(3485) : error 017: undefined symbol "blubm"
    C:\DOKUME~1\MICHAE~1\Desktop\ddg\DDG.pwn(3485) : warning 215: expression has no effect
    C:\DOKUME~1\MICHAE~1\Desktop\ddg\DDG.pwn(3485) : error 001: expected token: ";", but found "]"
    C:\DOKUME~1\MICHAE~1\Desktop\ddg\DDG.pwn(3485) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\MICHAE~1\Desktop\ddg\DDG.pwn(3485) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    bekomme diese errors
    hab es so eingefügt


    forward blubmoglich(playerid);
    public blubmoglich(playerid)
    {
    blubm[playerid] = 1;
    return 0;
    }



    und das bei commands rein
    if(strcmp(cmd, "/blub", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(SpielerInfo[playerid][sJob] == 3)
    {
    if(GetPlayerWeapon(playerid) == 12)
    {
    if(blubm[playerid] == 1)
    SetPlayerHealth(playerid,100);
    blubnm[playerid] = 0;
    SetTimerEx("blubmoglich",1000*5,0,"d",playerid);
    }
    else
    {
    SendClientMessage(playerid,FARBE,"Falsche Waffe");
    }
    }
    return 1;
    }
    }


    Also moin ,
    also ich wollte nen Befehl machen für nen job das man also im job sein muss und eine bestimmte waffen tragen muss damit der befehl der person leben = 100 gibt. Diesen befehle kann man nur alle 30 min eingeben aber das gilt für jede Person einzelnd. Wenn di Person diese Waffe nicht auf der Hand hat dann muss geschrieben werden das die person diese waffe nehmen soll.


    kann mir wer da helfen bitte?