Hilfe

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
  • Also ich bräuchte kurz hilfe.
    Könnt ihr mir das bitte als DCMD Cmd machen?
    Danke :


    if(strcmp(cmd, "/report", true) == 0){ if(IsPlayerConnected(playerid)) { if(JustReported[playerid] == 1) { SendClientMessage(playerid, 0xFF0000FF, " Wait 30 Sec than you can write our next ticket!"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername));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, "Use: /report [Question]");return 1;}new stringrp[200];GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));format(stringrp, sizeof(stringrp), "Support von: [ID:%d]%s", playerid, sendername);ABroadCast(0xF5FF00FF,stringrp,1);format(stringrp, sizeof(stringrp), "Meldung: %s", (result));ABroadCast(0xF5FF00FF,stringrp,1);ABroadCast(0xF5FF00FF,"Tippe '/ac [SpielerID]' oder '/no [SpielerID]'",1);SendClientMessage(playerid, 0xF5FF00FF, " Your ticket was send wait that an Admin take it.");JustReported[playerid] = 1;PlayerNeedsHelp[playerid] = 1;SetTimerEx("ReportReset", 300000, false, "i", playerid); } return 1;}if(strcmp(cmd, "/ac", true) == 0){ if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, 0xFF000FFF, " Du musst Eingeloggt sein !"); return 1; } if(SpielerInfo[playerid][pAdmin] > 0) { tmp = strtok(cmdtext, idx);if(!strlen(tmp)){ SendClientMessage(playerid, 0xFF000FFF, "Benutze: /ac [SpielerID/SpielerName]"); return 1;}giveplayerid = ReturnUser(tmp);if(IsPlayerConnected(giveplayerid)){ if(giveplayerid != INVALID_PLAYER_ID) {GetPlayerName(playerid, sendername, sizeof(sendername));GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));format(string, sizeof(string), "[Support]Supporter [ID:%d]%s have closed your ticket.", playerid, sendername);SendClientMessage(giveplayerid, 0xF5FF00FF, string);format(string, sizeof(string), "[Support]Du hast das Ticket geschlossen.", playerid, sendername);SendClientMessage(playerid, 0xF5FF00FF, string); ReportCall[playerid] = 999;ReportCall[giveplayerid] = 999;}} }}} if(strcmp(cmd, "/sup", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, 0xFF000FFF, " Du musst Eingeloggt sein !"); return 1; } if(SpielerInfo[playerid][pAdmin] > 0) { tmp = strtok(cmdtext, idx);if(!strlen(tmp)){ SendClientMessage(playerid, 0xFF000FFF, "Benutze: /sup [SpielerID/SpielerName]"); return 1;}giveplayerid = ReturnUser(tmp);if(IsPlayerConnected(giveplayerid)){ if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerNeedsHelp[giveplayerid] == 1) { PlayerNeedsHelp[giveplayerid] = 0; GetPlayerName(playerid, sendername, sizeof(sendername));GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));format(string, sizeof(string), "[Support]: %s hat das Ticket von [ID:%d]%s Angenommen.", sendername, giveplayerid, giveplayer);ABroadCast(0xF5FF00FF, string, 1);SendClientMessage(playerid, 0xF5FF00FF,"[Support]Du kannst nun mit den Spieler schreiben.");SendClientMessage(playerid, 0xF5FF00FF,"[Support]Du kannst das Ticket mit /ct [SpielerID/SpielerName] schließen");format(string, sizeof(string), "[Support]Supporter [ID:%d]%s have accepted your tikcet.You can write with him", playerid, sendername);SendClientMessage(giveplayerid, 0xF5FF00FF, string);SendClientMessage(giveplayerid, 0xF5FF00FF,"[Support]So you can write in the Chat with the Supporter.");SendClientMessage(playerid, 0xF5FF00FF,"[Support]Du kannst nun per Chat mit dem Spieler Schreiben."); ReportCall[giveplayerid] = playerid; ReportCall[playerid] = giveplayerid; //Verbinde zum Reporter } else { SendClientMessage(playerid, 0xFF0000FF, " Der Spieler hat kein Ticket offen oder es ist schon Vergeben."); return 1; } }} } else { SendClientMessage(playerid, 0xFF0000FF, " Du bist kein Admin!"); return 1; } } return 1;}
    if(strcmp(cmd, "/ct", true) == 0) // { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !"); return 1; } if(SpielerInfo[playerid][pAdmin] > 0) { tmp = strtok(cmdtext, idx);if(!strlen(tmp)){ SendClientMessage(playerid, COLOR_WHITE, "Benutze: /ct [SpielerID/SpielerName]"); return 1;}giveplayerid = ReturnUser(tmp);if(IsPlayerConnected(giveplayerid)){ if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerNeedsHelp[giveplayerid] == 1) { PlayerNeedsHelp[giveplayerid] = 0; GetPlayerName(playerid, sendername, sizeof(sendername));GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));format(string, sizeof(string), "[Support]: %s hat das Ticket von [ID:%d]%s abgelehnt", sendername, giveplayerid, giveplayer);ABroadCast(0xF5FF00FF, string, 1);format(string, sizeof(string), "[Support] [ID:%d]%s have not accepted your ticket.", playerid, sendername);SendClientMessage(giveplayerid, 0xF5FF00FF, string); } else { SendClientMessage(playerid, 0xFF0000FF, " Der Spieler hat keine Report anfrage !"); return 1; } }} } else { SendClientMessage(playerid, 0xFF0000FF, " Du bist kein Admin!"); return 1; } } return 1;}