2 Wünsche

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
  • Wunsch 1:
    if(strcmp(cmd, "/geldgeben", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, " /geldgeben [Playerid/Name] [money] [reason]");
    return 1;
    }
    new playa;
    new money;
    playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    money = strval(tmp);
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    new year, month,day;
    getdate(year, month, day);
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, " /money [Playerid/Name] [money] [reason]");
    return 1;
    }
    ResetPlayerMoney(playa);
    ConsumingMoney[playa] = 1;
    GivePlayerMoney(playa, money);
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, 256, "Admin: %s hat %s $%d gegeben, Grund: %s.", sendername,giveplayer,money,(result));
    ABroadCast(COLOR_RED,string,1);
    format(string, sizeof(string), "Admin: %s hat %s $%d gegeben, Grund: %s. (%d-%d-%d)", sendername,giveplayer,money,(result),month,day,year);
    PayLog(string);


    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du darfst dieses Befehl nicht benutzen !");
    }
    }
    OnPlayerUpdate2(playerid);
    OnPlayerUpdate2(giveplayerid);
    return 1;
    }
    hatte ich auf pc


    Wunsch 2: (hatte ich aufm pc)
    if (strcmp(cmd, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pAdmin] == 1338)
    {


    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"{FA0542}Administrator: %s",sendername);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{FA0542}Administrator: %s\n",string, sendername);


    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{2EFA05}Supporter: %s\n" ,string, sendername);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{2EFA05}Supporter: %s\n",string, sendername);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{2EFA05}Moderator: %s\n",string, sendername);


    }
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{2EFA05}Moderator: %s\n",string, sendername);


    }
    if(PlayerInfo[i][pAdmin] == 1339)
    {


    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s{FA0542}Scripter/Administrator: %s\n",string, sendername);


    }
    ShowPlayerDialog(playerid,2206,DIALOG_STYLE_MSGBOX,"{FCFCFC}Admins die online sind:",string,"Ok","");
    }
    }
    }
    return 1;
    }


    weiß net ob es bei dir geht
    mfg
    bartundlisa