Beiträge von RnBexclusiv

    new s[256];
    strcat(s,"/testcommand1 /testcommand2 /testcommand3 /testcommand4 \n/testcommand5 /testcommand6 /testcommand7 /testcommand8");
    strcat(s,"/testcommand9 /testcommand10 /testcommand11 /testcommand12 \n/testcommand13 /testcommand14 /testcommand15 /testcommand16");
    //etc...
    ShowPlayerDialog(playerid,DIALOG_ADMINCMDS,DIALOG_STYLE_MSGBOX,"Admincommands",s,"OK","");

    Einfach mit deiner Funktion SpielerName(..) die ID des anderen benutzen.ocmd:pn(playerid, params[])
    {
    new pID, reason[128], string[128];
    if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,ROT,"/pn [ID] [Grund]");
    format(string,sizeof (string),"Von %s, [Grund: %s]",SpielerName(playerid),reason);
    SendClientMessage(pID,BLAU,string);
    SendClientMessage(playerid,BLAU,"Du hast deine nachrich an %s geschikt",SpielerName(pID));
    SendClientMessage(playerid,BLAU,"%s",string);
    SendClientMessageToAll(BLAU,"%s hat %s eine nachricht geschrieben",SpielerName(playerid),SpielerName(pID));
    return 1;
    }

    Sollte so gehen.if(!strcmp(cmd, "/carinfo", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 2 && IsPlayerInAnyVehicle(playerid))
    {
    new i = GetPlayerVehicleID(playerid));
    SendClientMessage(playerid,RED,"______________________________________________________________");
    format(str, sizeof str, "Model: %d, X: %0.2f, Y: %0.2f, Z: %0.2f, A: %0.2f", PlayerCar[i][model], PlayerCar[i][px], PlayerCar[i][py], PlayerCar[i][pz], PlayerCar[i][pa]);
    SendClientMessage(playerid, RED, str);
    format(str, sizeof str, "Besitzer: %s, Lock: %d, Tank: %d%%, ID: %d, Preis: %d, VehicleID: %d, Nummernschild: %s-%d", PlayerCar[i][Key], PlayerCar[i][Lock], PlayerCar[i][Fuel], PlayerCar[i][NSID], PlayerCar[i][BuyPrice], PlayerCar[i][vid], PlayerCar[i][ABC], PlayerCar[i][NSID]);
    SendClientMessage(playerid, RED, str);
    new stri[15], spritart = PlayerCar[i][FuelType]; if(spritart) stri = "Benzin"; else if(spritart == 2) stri = "Diesel"; else if(spritart == 3) stri = "Autogas";
    format(str, sizeof str, "Job Car: %d, Job: %d, Fraktions Car: %d, Fraktion: %d, Kraftstoff: %s, Abgeschleppt = %d", PlayerCar[i][JobCar], PlayerCar[i][Job], PlayerCar[i][FrakCar], PlayerCar[i][Frak], stri,PlayerCar[i][Towed]);
    SendClientMessage(playerid, RED, str);
    SendClientMessage(playerid,RED,"______________________________________________________________");
    return 1;
    }
    else
    {
    return SendClientMessage(playerid,COLOR_GRAD1,"* Du bist kein Administrator!");
    }
    }

    new Float:ATMs[2][3] = {
    {1553.800049, -1666.099976, 13.200000}
    };


    for(new i = 0;i<sizeof(ATMs),i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,5,ATMs[i][0],ATMs[i][1],ATMs[i][2]))
    {
    //ja
    }
    }


    musst pben die koords eintragen und die anzahl (Jetzt 2) immer ändern
    mfg.


    kp ob es geht.

    ocmd:fah(playerid,params[])
    {
    new text[128];
    if(sscanf(params,"s",text))return SendClientMessage(playerid,GRAU,"[Benutzung]: /fa(hrlehrer) Chat [Text]");
    format(text,sizeof(text),"Fahrlehrer %s: %s",SpielerName(playerid),text);
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsPlayerConnected(i))
    {
    if(!isPlayerInFrakt(playerid,6))return SendClientMessage(playerid,GRAU,"Du darfst den Fahrlehrer Chat nicht benutzen!");
    if(isPlayerInFrakt(i,6)
    {
    SendClientMessage(i,HELLBLAU,text);
    }
    }
    }
    return 1;
    }


    müsste gehen

    Okay dann nehm dein altes wieder.
    Hast du denn mittlerweile den Namen per printf oder sowas ausgegeben?
    Gebe dir dochmal so den Skin aus.
    sprich printf("%d",mysql_GetInt("accounts", "Skin", "Name", SpielerInfo[playerid][pName]));

    Sollte EIG. gehenif(strcmp(cmdtext,"/backallcars",true) == 0)
    {
    if(isPlayerAnAdmin(playerid,5))
    {
    new count = GetTickCount(), str[128], counter = 0;
    for(new i = 0; i<MAX_VEHICLES; i++)
    {
    new Float:Pos[3];
    GetVehiclePos(i,Pos[0],Pos[1],Pos[2]);
    if(Pos[0] != 0 && Pos[1] != 0 && Pos[2] != 0)
    {
    counter++;
    SetVehicleToRespawn(i);
    }
    }
    format(str, sizeof str, "%d Cars in %d Milisekunden respawnt!",counter, GetTickCount() - count);
    SendClientMessage(playerid, 0x33CCFFAA, str);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist kein Admin oder hast nicht den nötigen rang.!");
    }
    return 1;
    }

    stock mysql_GetInt(Table[], Field[], Where[], Is[])
    {
    new query[128];
    mysql_real_escape_string(Table, Table);
    mysql_real_escape_string(Field, Field);
    mysql_real_escape_string(Where, Where);
    mysql_real_escape_string(Is, Is);
    format(query, 128, "SELECT %d FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
    mysql_query(query);
    mysql_store_result();
    new sqlint = mysql_fetch_int();
    mysql_free_result();
    return sqlint;
    }


    Probier es mal so.