Bitte helft mir bei dem befehl ich bin zu blöd...

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
  • if(strcmp(cmd,"/m",true) == 0){
    if(pInfo[playerid][duty] == 0) return 1;
    if(!strlen(strget(cmdtext,1)))
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Verwendung: /m [Text]");
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 1)
    {
    new text[200];
    format(text,200,"[Polizist %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 2)
    {
    new text[200];
    format(text,200,"[Gehobener Polizist %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 3)
    {
    new text[200];
    format(text,200,"[Komissar Anwärter %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 4)
    {
    new text[200];
    format(text,200,"[Komissar %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 5)
    {
    new text[200];
    format(text,200,"[SWAT Anwärter %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 6)
    {
    new text[200];
    format(text,200,"[SWAT %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][rank] == 7)
    {
    new text[200];
    format(text,200,"[Officer %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 1)
    {
    new text[200];
    format(text,200,"[Private %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }


    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 2)
    {
    new text[200];
    format(text,200,"[Private First Class %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 3)
    {
    new text[200];
    format(text,200,"[Sergeat %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 4)
    {
    new text[200];
    format(text,200,"[Major %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 5)
    {
    new text[200];
    format(text,200,"[Colonel %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 6)
    {
    new text[200];
    format(text,200,"[Lieutenent General %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 12 && pInfo[playerid][rank] == 7)
    {
    new text[200];
    format(text,200,"[General of Army %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 1)
    {
    new text[200];
    format(text,200,"[FBI AZUBI %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 2)
    {
    new text[200];
    format(text,200,"[FBI Agent %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 3)
    {
    new text[200];
    format(text,200,"[Geheimagenten Anwärter %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 4)
    {
    new text[200];
    format(text,200,"[Geheimagent %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 5)
    {
    new text[200];
    format(text,200,"[Gehobner Geheimagent %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 6)
    {
    new text[200];
    format(text,200,"[Oberkomandierender FBI Agent %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }
    if(pInfo[playerid][fraktion] == 13 && pInfo[playerid][rank] == 7)
    {
    new text[200];
    format(text,200,"[Oberster Agent des FBI %s: %s]",spieler,cmdtext[3]);
    new Float:xx,Float:yy,Float:zz;
    GetPlayerPos(playerid,xx,yy,zz);
    for(new ii = 0; ii < MAX_PLAYERS; ii++){
    if(IsPlayerInRangeOfPoint(ii,40,xx,yy,zz)){
    SendClientMessage(ii,COLOR_BRIGHTYELLOW,text);
    }


    }
    }
    return 1;
    }

    Da hab ich folgendes(ich übertrag das jetzt nicht auf das oben mit den zeilen)


    kann mir mb einer via Teamviewer oder so helfen ich blick da nichtmehr durch... ;(;(;(




    Bitte helft mir, lasst mich nicht dumm sterben...

    Einmal editiert, zuletzt von Ultimaster ()