Beiträge von xTheTimex

    Hallo liebe Breadfische,


    Ich fass es kurz


    #define navi 997782


    if(strcmp(cmd, "/navi", true) == 0){ if(IsPlayerConnected(playerid)) {if(PlayerInfo[playerid][pNavi] == 0)//Navi aufrufen{SendClientMessage(playerid, COLOR_GRAD2, "Du hast kein Navi kauf dir eins im 24/7 !");return 1;}else{format(string, sizeof(string), "Los Santos Police Department\nStadthalle");ShowPlayerDialog(playerid, 997782, DIALOG_STYLE_LIST, "NavigationsGerät", string, "Suchen", "Abbrechen");}} //Albert stinktreturn 1;}



    übersichtlicher:


    if(strcmp(cmd, "/navi", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pNavi] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du hast kein Navi kauf dir eins im 24/7 !");
    return 1;
    }
    else
    {
    format(string, sizeof(string), "Los Santos Police Department\nStadthalle");
    ShowPlayerDialog(playerid, 997782, DIALOG_STYLE_LIST, "NavigationsGerät", string, "Suchen", "Abbrechen");
    }} //Albert stinkt
    return 1;
    }



    und unter OnPlayerDialogResponse
    if (dialogid == 997782){if (response){ if(listitem == 0){ format(string, sizeof(string), "Route suchen..\n\n\nRoute wurde gesetzt."); ShowPlayerDialog(playerid, info, DIALOG_STYLE_MSGBOX, "Navi", string, "Ok", " ");SetPlayerCheckpoint(playerid, 1541.4345703125,-1675.6224365234,13.552541732788,5.0);return 1;}if(listitem == 1){ format(string, sizeof(string), "Route suchen..\n\n\nRoute wurde gesetzt."); ShowPlayerDialog(playerid, info, DIALOG_STYLE_MSGBOX, "Navi", string, "Ok", " ");SetPlayerCheckpoint(playerid, 1481.4822998047,-1767.8291015625,18.795755386353,5.0);return 1;}}}



    übersichtlicher:


    if (dialogid == 997782)
    {
    if (response)
    {
    if(listitem == 0)
    {
    format(string, sizeof(string), "Route suchen..\n\n\nRoute wurde gesetzt.");
    ShowPlayerDialog(playerid, info, DIALOG_STYLE_MSGBOX, "Navi", string, "Ok", " ");
    SetPlayerCheckpoint(playerid, 1541.4345703125,-1675.6224365234,13.552541732788,5.0);
    return 1;
    }
    if(listitem == 1)
    {
    format(string, sizeof(string), "Route suchen..\n\n\nRoute wurde gesetzt.");
    ShowPlayerDialog(playerid, info, DIALOG_STYLE_MSGBOX, "Navi", string, "Ok", " ");
    SetPlayerCheckpoint(playerid, 1481.4822998047,-1767.8291015625,18.795755386353,5.0);
    return 1;
    }
    }
    }




    Als letztes gehe ich ins game und schreibe /navi.
    Das Dialogfenster wird aufgerufen und dort steht auch alles.
    ->Stadthalle -> Suchen. Nun müsste ein nächster Dialog kommen, und ein Marker müsste gesetzt werden. Es geschiet aber nichts..


    Ich suche schon den ganzen Tag verzweifelt nach dieser Ursache, nur ich finde den Fehler nie.


    Ich hoffe ihr schon.




    Mit freundlichen Grüßen
    wuppiboy9 alias Marcel

    huhu, kann mir einer einen NPC machen der auch bei einem GUI Register/Login System funktioniert?
    Also der Connectet und nicht beim Login rausgeworfen wird?


    Wäre echt nett von euch.



    Mit Freundl. Grüßen
    wuppiboy9

    Huhu,


    ich fass mich kurz


    SetPlayerColor(playerid, COLOR_RED2);



    unter OnPlayerSpawn bzw.


    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { SetPlayerToTeamColor(playerid); SetPlayerColor(playerid, COLOR_GREEN);SetPlayerPos(playerid, 2495.3435,-1686.9659,13.5150);SetPlayerFacingAngle(playerid, 357.0);SetPlayerInterior(playerid,0);GivePlayerWeapon(playerid, 29, 800);GivePlayerWeapon(playerid, 25, 200);GivePlayerWeapon(playerid, 30, 230);SetPlayerArmour(playerid,100.0);GivePlayerWeapon(playerid, 34, 50);PlayerInfo[playerid][pInt] = 0;SetPlayerVirtualWorld(playerid, 0); return 1; }



    Übersichtlicher:



    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Groove Street
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid, COLOR_GREEN);
    SetPlayerPos(playerid, 2495.3435,-1686.9659,13.5150);
    SetPlayerFacingAngle(playerid, 357.0);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid, 29, 800);
    GivePlayerWeapon(playerid, 25, 200);
    GivePlayerWeapon(playerid, 30, 230);
    SetPlayerArmour(playerid,100.0);
    GivePlayerWeapon(playerid, 34, 50);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }



    SetPlayerColor(playerid, COLOR_GREEN);



    Wenn man Spawnt soll man Grün sein. Dies geschiet nicht.
    Wenn man /setteam macht, klappt alles aber beim Tod ist man wieder unsichtbar also weiss...


    habe alles probiert kann mir einer bitte weiterhelfen?

    Hallo Leute!
    Ich versuche ein Teamspeak 3 Free Sponsoring (Anfänger)
    und nun komme ich nicht in die ServerQuery ich habe meine Daten eingeben


    (Login |[Manuell]|)


    ich gebe ein
    Login: serveradmin
    Passwort: Passwortwasichbeiderinstalltionbekommenhabe


    dann klick ich auf den grünen Startbutton aber da kommt nur" Total: 0 ms "



    muss ich noch was installieren oder wie?? Kann mir bitte jemand weiter helfen






    M.F.G
    wuppiboy9

    Hallo Breadfish...


    Ich hätte eine Frage, und zwar habe ich SuFu benutzt aber nichts gefunden...
    Ihr kennt doch Sicherlich, wenn man ein Selfmade anfängt kann man in (fast) jedes Haus.
    Gelbe (Kegel) begleiten euch ins Haus.


    Diese möchte ich gerne entfernen aber habe den "CodeSchnipsel" vergessen.


    Ich bitte um Hilfe



    Mit freundl. Grüßen
    Marcel Thomas
    wuppiboy9

    Hallo liebe Breadfische!


    dcmd_arrest(playerid,params[]){#pragma unused params{new pID;if(sscanf(params, "ud", pID)){ return SendClientMessage(playerid,COLOR_RED,"Benutzung: /arrest [Playerid]");}if(!IsPlayerConnected(pID)){ return SendClientMessage(playerid,COLOR_RED,"nobody with this ID");}if(GetDistanceBetweenPlayers(playerid,pID) > 10){return SendClientMessage(playerid, COLOR_GRAD1, "Der Spieler ist nicht in deiner Nähe!");} if(gTeam[pID] == 110) { return SendClientMessage(playerid, COLOR_GRAD1, "Cannot arrest Cops!");}if(WantedPoints[pID] == 0){return SendClientMessage(playerid, COLOR_GRAD1, " The Player doesn't have wanteds!"); } if(WantedPoints[pID] == 2) { SetPlayerPos(pID, 264.6288,77.5742,1001.0391); SetPlayerInterior(pID, 6); SetTimerEx("arresttimer", 10000, 0, "i", pID);new name[MAX_PLAYER_NAME], string[256]; GetPlayerName(pID, name, sizeof(name)); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); SendClientMessage(pID, COLOR_RED, "You are 10 seconds in Jail!"); format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname); SendClientMessageToAll(COLOR_RED, string); SetPlayerColor(pID, COLOR_WHITE); becomewanted[pID] = 0;} if(WantedPoints[pID] == 3) { SetPlayerPos(pID, 264.6288,77.5742,1001.0391); SetPlayerInterior(pID, 6); SetTimerEx("arresttimer", 30000, 0, "i", pID);new name[MAX_PLAYER_NAME], string[256]; GetPlayerName(pID, name, sizeof(name)); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); SendClientMessage(pID, COLOR_RED, "You are 30 seconds in Jail!"); format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname); SendClientMessageToAll(COLOR_RED, string); SetPlayerColor(pID, COLOR_WHITE); becomewanted[pID] = 0;} if(WantedPoints[pID] == 4) { SetPlayerPos(pID, 264.6288,77.5742,1001.0391); SetPlayerInterior(pID, 6); SetTimerEx("arresttimer", 55000, 0, "i", pID);new name[MAX_PLAYER_NAME], string[256]; GetPlayerName(pID, name, sizeof(name)); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); SendClientMessage(pID, COLOR_RED, "You are 55 seconds in Jail!"); format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname); SendClientMessageToAll(COLOR_RED, string); SetPlayerColor(pID, COLOR_WHITE); becomewanted[pID] = 0;} if(WantedPoints[pID] == 5) { SetPlayerPos(pID, 264.6288,77.5742,1001.0391); SetPlayerInterior(pID, 6); SetTimerEx("arresttimer", 18000, 0, "i", pID);new name[MAX_PLAYER_NAME], string[256]; GetPlayerName(pID, name, sizeof(name)); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); SendClientMessage(pID, COLOR_RED, "You are 180 seconds in Jail!"); format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname); SendClientMessageToAll(COLOR_RED, string); SetPlayerColor(pID, COLOR_WHITE); becomewanted[pID] = 0;} if(WantedPoints[pID] == 6) { SetPlayerPos(pID, 264.6288,77.5742,1001.0391); SetPlayerInterior(pID, 6); SetTimerEx("arresttimer", 120000, 0, "i", pID);new name[MAX_PLAYER_NAME], string[256]; GetPlayerName(pID, name, sizeof(name)); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); SendClientMessage(pID, COLOR_RED, "You are 2 minutes in Jail!"); format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname); SendClientMessageToAll(COLOR_RED, string); SetPlayerColor(pID, COLOR_WHITE); becomewanted[pID] = 0;}


    if(gTeam[pID] == 110) { return SendClientMessage(playerid, COLOR_GRAD1, "Cannot arrest Cops!");} } return 1;}



    Hier vllt. übersichtlicher



    dcmd_arrest(playerid,params[])
    {
    #pragma unused params
    {
    new pID;
    if(sscanf(params, "ud", pID))
    {
    return SendClientMessage(playerid,COLOR_RED,"Benutzung: /arrest [Playerid]");
    }
    if(!IsPlayerConnected(pID))
    {
    return SendClientMessage(playerid,COLOR_RED,"nobody with this ID");
    }
    if(GetDistanceBetweenPlayers(playerid,pID) > 10)
    {
    return SendClientMessage(playerid, COLOR_GRAD1, "Der Spieler ist nicht in deiner Nähe!");
    }
    if(gTeam[pID] == 110) { return SendClientMessage(playerid, COLOR_GRAD1, "Cannot arrest Cops!");}
    if(WantedPoints[pID] == 0)
    {
    return SendClientMessage(playerid, COLOR_GRAD1, " The Player doesn't have wanteds!");
    }
    if(WantedPoints[pID] == 2)
    {
    SetPlayerPos(pID, 264.6288,77.5742,1001.0391);
    SetPlayerInterior(pID, 6);
    SetTimerEx("arresttimer", 10000, 0, "i", pID);
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(pID, name, sizeof(name));
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    SendClientMessage(pID, COLOR_RED, "You are 10 seconds in Jail!");
    format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerColor(pID, COLOR_WHITE);
    becomewanted[pID] = 0;
    }
    if(WantedPoints[pID] == 3)
    {
    SetPlayerPos(pID, 264.6288,77.5742,1001.0391);
    SetPlayerInterior(pID, 6);
    SetTimerEx("arresttimer", 30000, 0, "i", pID);
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(pID, name, sizeof(name));
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    SendClientMessage(pID, COLOR_RED, "You are 30 seconds in Jail!");
    format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerColor(pID, COLOR_WHITE);
    becomewanted[pID] = 0;
    }
    if(WantedPoints[pID] == 4)
    {
    SetPlayerPos(pID, 264.6288,77.5742,1001.0391);
    SetPlayerInterior(pID, 6);
    SetTimerEx("arresttimer", 55000, 0, "i", pID);
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(pID, name, sizeof(name));
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    SendClientMessage(pID, COLOR_RED, "You are 55 seconds in Jail!");
    format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerColor(pID, COLOR_WHITE);
    becomewanted[pID] = 0;
    }
    if(WantedPoints[pID] == 5)
    {
    SetPlayerPos(pID, 264.6288,77.5742,1001.0391);
    SetPlayerInterior(pID, 6);
    SetTimerEx("arresttimer", 18000, 0, "i", pID);
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(pID, name, sizeof(name));
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    SendClientMessage(pID, COLOR_RED, "You are 180 seconds in Jail!");
    format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerColor(pID, COLOR_WHITE);
    becomewanted[pID] = 0;
    }
    if(WantedPoints[pID] == 6)
    {
    SetPlayerPos(pID, 264.6288,77.5742,1001.0391);
    SetPlayerInterior(pID, 6);
    SetTimerEx("arresttimer", 120000, 0, "i", pID);
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(pID, name, sizeof(name));
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    SendClientMessage(pID, COLOR_RED, "You are 2 minutes in Jail!");
    format(string, sizeof(string), "[Arrested] Police Officer %s arrested %s. ", name, aname);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerColor(pID, COLOR_WHITE);
    becomewanted[pID] = 0;
    }



    if(gTeam[pID] == 110) { return SendClientMessage(playerid, COLOR_GRAD1, "Cannot arrest Cops!");}
    }
    return 1;
    }






    Es gibt keine Warnings/Errors!
    Aber wenn ich jetzt /arrest [PlayerID] eingebe z.B. /arrest 0 dann steht da


    Benutzung: /arrest [PID]bla bla




    ich finde den Fehler nicht und wollte das hier mal gerne ansprechen und gucken ob ihr es wisst ;)

    Ja aber...


    1. wie sollte ich das definieren? [MAX_PLAYERS] ??? Soviel ahnung hab ich auchmal wieder nicht
    2. Warum = 0 ?? ich will doch den Namen... ich blicks nicht

    öhm ja ok fail... geht leider nicht.... ist selfmade.....



    Ich guck dann ob das i-wie mit Ip geht ich benutze dafür SuFu aber trozdem Thxn :thumbup:

    Liebe Brotfische...


    Wie die Überschrift schon sagt, geht es darum, undzwar ich gebe z.B. ein: /hausgate


    nun möchte ich das so scripten, dass nur der Name (der Benutzername) die öffnen kann... ein Beispiel


    if(PlayerInfo[playerid][pName] = marcel <- Gf gemeint..


    Tipp: Hier gehts um ein Cops and Robbers script... Login/Register System ist schon drin (wie fast im GF) nur bei mir heißt es zum Beispiel


    if(Spieler[playerid][AdminLevel] == 1



    Danke schonmal im Vorraus

    Hallo liebe Brotfischer habt ihr ein DCMD kick befehl für ein FreeRoam Script?
    ich habe diesen hier


    new cmd[256];newtmp[256];new Message[256];new gMessage[256];new pName[MAX_PLAYER_NAME+1];new iName[MAX_PLAYER_NAME+1];newidx;


    dcmd_kick(playerid,params[]){#pragma unused paramsif(Spieler[playerid][AdminLevel] > 2) {tmp = strtok(cmdtext,idx);if(!strlen(tmp) || strlen(tmp) > 5) {return SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Usage: /kick (id) [reason]");}
    new id = strval(tmp);
    if(!IsPlayerConnected(id)) {SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"/kick : Bad player ID");return 1;}
    gMessage = strrest(cmdtext,idx);
    GetPlayerName(id,iName,sizeof(iName));SendClientMessage(id,ADMINFS_MESSAGE_COLOR,"-- You have been kicked from the server.");
    if(strlen(gMessage) > 0) {format(Message,sizeof(Message),"Reason: %s",gMessage);SendClientMessage(id,ADMINFS_MESSAGE_COLOR,Message);}
    format(Message,sizeof(Message),">> %s(%d) has been kicked.",iName,id);SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,Message);
    Kick(id);return 1;} else { SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"/kick : You are not an admin");return 1;}}
    }return 1;}




    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\dutils.inc(462) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\../include/gl_common.inc(75) : error 021: symbol already defined: "strtok"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\../include/gl_common.inc(90) : error 047: array sizes do not match, or destination array is too small
    C:\Dokumente und Einstellungen\Marcelli\Desktop\Alles\Ordner\Sa-mp\pawno\include\../include/gl_common.inc(134) : error 021: symbol already defined: "isNumeric"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(269) : error 017: undefined symbol "cmdtext"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(281) : error 017: undefined symbol "cmdtext"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(302) : error 054: unmatched closing brace ("}")
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(303) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(833) : warning 203: symbol is never used: "cmd"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(833) : warning 203: symbol is never used: "idx"
    C:\Dokumente und Einstellungen\Marcelli\Desktop\C-a-RSelfmade.pwn(833) : warning 203: symbol is never used: "pName"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.
    ich bitte erneut um HIlfe



    Danke imVorraus ;)