Beiträge von Purex

    Ich versuche schon die ganze Zeit Pickups zu erstellen nur ich schaffe es einfach nicht!
    Ich weiß nicht wie sowas geht kann mir vielleich einer erklären wie sowat geht?


    AddStaticPickup(1239, -1, 2516.9216,-624.3085,132.7874,184.1771); //Sf Rifa Healh


    Nur das wird net angezeigt es steht auf unter GamemodeInit
    Danke im vorraus

    if(strcmp(cmd, "/duty", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {


    if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
    {
    if(OnDuty[playerid]==0)
    {

    new name[MAX_PLAYER_NAME], string[124];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* Du hast deine Waffe aus dem Spinnt genommen.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string,sizeof(string),"* Der Beamte %s ist in den Dienst gegangen!", name);
    SendClientMessageToAll(COLOR_NEWS,string);
    SetPlayerHealth(playerid,100.0);
    SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    SetPlayerArmour(playerid,100.00);
    GivePlayerWeapon(playerid, 29, 999);
    GivePlayerWeapon(playerid, 31, 999);
    GivePlayerWeapon(playerid, 25, 999);
    GivePlayerWeapon(playerid, 3, 0);
    OnDuty[playerid] = 1;
    }
    else if(OnDuty[playerid]==1)
    {
    new name[MAX_PLAYER_NAME], string[124];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* Du hast deine Waffe in den Spinnt gelegt.", sendername);
    SetPlayerArmour(playerid,0.0);
    ResetPlayerWeapons(playerid);
    SetPlayerColor(playerid,COLOR_WHITE);
    format(string,sizeof(string),"* Der Beamte %s ist aus dem Dienst gegangen!", name);
    SendClientMessageToAll(COLOR_NEWS,string);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    OnDuty[playerid] = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du bist nicht im Umkleideraum !");
    return 1;
    }
    }
    else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
    {
    if(JobDuty[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun auser Dienst.");
    JobDuty[playerid] = 0;
    Medics -= 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun im Dienst.");
    JobDuty[playerid] = 1;
    Medics += 1;
    }
    }
    else if(PlayerInfo[playerid][pJob] == 7)
    {
    if(JobDuty[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun auser Dienst.");
    JobDuty[playerid] = 0;
    Mechanics -= 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun im Dienst.");
    JobDuty[playerid] = 1;
    Mechanics += 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Bulle !");
    }
    }
    return 1;
    }


    Ich wollte das so machen aber da können aufeinmal alle duty gehen



    if(strcmp(cmd, "/duty", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(PlayerInfo[playerid][pMember] == 1,2,3||PlayerInfo[playerid][pLeader] == 1,2,3)
    {


    if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
    {
    if(OnDuty[playerid]==0)
    {


    new name[MAX_PLAYER_NAME], string[124];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* Du hast deine Waffe aus dem Spinnt genommen.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string,sizeof(string),"* Der Beamte %s ist in den Dienst gegangen!", name);
    SendClientMessageToAll(COLOR_NEWS,string);
    SetPlayerHealth(playerid,100.0);
    SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    SetPlayerArmour(playerid,100.00);
    GivePlayerWeapon(playerid, 29, 999);
    GivePlayerWeapon(playerid, 31, 999);
    GivePlayerWeapon(playerid, 25, 999);
    GivePlayerWeapon(playerid, 3, 0);
    OnDuty[playerid] = 1;
    }
    else if(OnDuty[playerid]==1)
    {
    new name[MAX_PLAYER_NAME], string[124];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* Du hast deine Waffe in den Spinnt gelegt.", sendername);
    SetPlayerArmour(playerid,0.0);
    ResetPlayerWeapons(playerid);
    SetPlayerColor(playerid,COLOR_WHITE);
    format(string,sizeof(string),"* Der Beamte %s ist aus dem Dienst gegangen!", name);
    SendClientMessageToAll(COLOR_NEWS,string);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    OnDuty[playerid] = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du bist nicht im Umkleideraum !");
    return 1;
    }
    }
    else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
    {
    if(JobDuty[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun auser Dienst.");
    JobDuty[playerid] = 0;
    Medics -= 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun im Dienst.");
    JobDuty[playerid] = 1;
    Medics += 1;
    }
    }
    else if(PlayerInfo[playerid][pJob] == 7)
    {
    if(JobDuty[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun auser Dienst.");
    JobDuty[playerid] = 0;
    Mechanics -= 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Du bist nun im Dienst.");
    JobDuty[playerid] = 1;
    Mechanics += 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Bulle !");
    }
    }
    return 1;
    }


    Wie kann ich das hinbekommen ?

    ich werde es testen ^^


    //edit:
    So wen ich /adminonduty mache bekomme ich zwar das leben und die armor aber
    die schrift kommt nicht!


    Und wen ich /adminoffduty mache kommt auch keine schrift und der Server schmirt ab


    :wacko:
    kann mir das einer per teamviewer machen?

    -xt5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:3 Used: 0 Maker:0


    Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:4 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:5 Used: 0 Maker:0


    Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:6 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:7 Used: 0 Maker:0


    Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:8 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] Paper:9 Used: 0 Maker:0


    Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
    [16:48:57] EnableTirePopping() function is removed.
    [16:48:57] Warning: EnableZoneNames() is removed since 0.3
    [16:48:57] Pickups Max = 100, Current Pickups = 80
    [16:48:57] Reading File: blank
    [16:48:57] Reading File: properties/houses.txt
    [16:48:57] Reading File: properties/businesses.txt
    [16:48:57] Reading File: properties/banks.txt
    [16:48:57] Reading File: properties/police.txt
    [16:48:57]
    [16:48:57]
    [16:48:57] German-Reallife
    [16:48:57] _____________________
    [16:48:57] Copyright By [GRG]
    [16:48:57]
    [16:48:57] Number of vehicle models: 49
    [16:49:23] Incoming connection: 127.0.0.1:62263
    [16:49:23] [join] _GhostRider_ has joined the server (0:127.0.0.1)
    [16:49:26] [part] _GhostRider_ has left the server (0:1)
    [16:49:56] Incoming connection: 127.0.0.1:61663
    [16:49:56] [join] SkiLLJoker has joined the server (0:127.0.0.1)
    [16:49:56] [chat] [SkiLLJoker]: _GhostRider_
    [16:50:00] SkiLLJoker has logged in.

    Hallo liebe Breadfish-Community,
    ich wollte heute mal fragen ob ihr mir hier helfen könnt.


    if(strcmp(cmd, "/Adminonduty", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    GetPlayerName(playerid, name, sizeof(name));
    SetPlayerHealth(playerid,200.0);
    SetPlayerArmour(playerid,20000.0);
    SendClientMessageToAll(COLOR_RED, "* Admin %s ist als Admin im Dienst und nimmt daher nicht am Spiel teil!", name);
    }
    return 1;
    }


    if(strcmp(cmd, "/Adminoffduty", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    SetPlayerHealth(playerid,100.0);
    SetPlayerArmour(playerid,100.0);
    SendClientMessageToAll(COLOR_RED,"* Admin %s ist nicht mehr im Dienst und nimmt daher am Spiel teil!", name);


    }
    return 1;
    }


    dann wen ich in-game /adminonduty mache geht mein Server einfach aus 8|
    Was soll ich machen?
    Ich hoffe mir kann jemand helfen
    MFG RaZzer683