Beiträge von xXganzereuroXx


    bitte sehr ;)

    PlayerStopSound(playerid);

    Denke ich ma^^


    nein eben nicht ^^


    zum Stoppen wird ebenfals PlayerPlaySound verwended bsp:


    SOUND_GOGO_TRACK_START 1062 (music)
    SOUND_GOGO_TRACK_STOP 1063 (music)


    PlayerPlaySound(playerid, 1062, 0.0, 0.0, 10.0); //startet den sound dar id = 1062
    PlayerPlaySound(playerid, 1063, 0.0, 0.0, 10.0); //stoppt den sound dar id = 1063


    1062 ist die ID zum STARTEN des sounds
    1063 ist die ID zum STOPPEN des sounds


    mfg xXganzereuroXx

    nabend leute;


    wie es die überschrift schon sagt, wenn ich inGame /stats eintippe zeig er nur 2 von 3 zeilen an ....


    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new name[MAX_PLAYER_NAME], string[300], string2[300],string3[300],string4[300];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "***| Stats von [%s] |***", name);
    format(string2, sizeof(string2), "[Kills: %d] [Deaths: %d] [Ratio: %0.2f] [Wanted: %d] [Cash: %d]",Player[playerid][Kills],Player[playerid][Deaths], Float:Player[playerid][Kills]/Float:Player[playerid][Deaths],GetPlayerWantedLevel(playerid),GetPlayerMoney(playerid));
    format(string3, sizeof(string3), "[Score: %d] [Adminlevel: %d] [Grass: %d] [Heroin: %d] ",GetPlayerScore(playerid),Player[playerid][admin],Player[playerid][gras],Player[playerid][heroin]);
    format(string3, sizeof(string3), "[LSD: %d]",Player[playerid][lsd]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "|________________________________________________________________|");
    SendClientMessage(playerid, COLOR_GREEN, string);
    SendClientMessage(playerid, COLOR_WHITE, string2);
    SendClientMessage(playerid, COLOR_WHITE, string3); //das wird nicht angezeigt -.-
    SendClientMessage(playerid, COLOR_WHITE, string4);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "|________________________________________________________________|");
    return 1;
    }


    ich sehe nicht den fehler...


    mfg xXganzereuroXx

    public OnGameModeInit()
    {
    Create3DTextLabel("Polizei Los Santos Dienst",0xCE000000,256.1579,74.5924,1003.6406,40.0,0,0);
    Create3DTextLabel("Polizei Las Venturas Dienst",0xCE000000,228.9400,168.2599,1003.0234,40.0,0,0);
    Create3DTextLabel("WasserSchutz Polizei Dienst",0xCE000000,228.9400,168.2599,1003.0234,40.0,0,0);
    Create3DTextLabel("Los Santos Taxi Dienst (HQ)",0xCE000000,1771.2418,-1907.2025,13.5552,40.0,0,0);
    Create3DTextLabel("Las Venturas Taxi Dienst",0xCE000000,1771.2418,-1907.2025,13.5552,40.0,0,0);
    Create3DTextLabel("Los Santos Adac Dienst",0xCE000000,-79.9094,-1135.0229,1.0781,40.0,0,0);
    Create3DTextLabel("Las Venturas Adac Dienst",0xCE000000,1886.0837,2339.3083,10.8203,40.0,0,0);
    Create3DTextLabel("San Fierro Adac Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,0,0);
    Create3DTextLabel("San Andreas Feuerwehr Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,0,0);
    Create3DTextLabel("San Andreas Xoomer Dienst",0xCE000000,257.3088,1387.4073,10.5859,40.0,0,0);
    Create3DTextLabel("Los Santos Medic Dienst",0xCE000000,1172.8623,-1323.3154,15.3996,40.0,0,0);
    Create3DTextLabel("San Fierro Medic Dienst",0xCE000000,-2655.0474,639.3306,14.4531,40.0,0,0);
    Create3DTextLabel("Las Venturas Medic Dienst",0xCE000000,1607.2433,1816.7847,10.8203,40.0,0,0);
    Create3DTextLabel("Post Los Santos Dienst",0xCE000000,1117.9919,-1249.7778,15.9281,40.0,0,0);
    Create3DTextLabel("Post San Fierro Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,0,0);
    Create3DTextLabel("Post Las Venturas Dienst",0xCE000000,1680.8837,1760.2552,10.8285,40.0,0,0);
    Create3DTextLabel("Muell Deport Dienst",0xCE000000,-1895.4550,-1683.3735,23.0156,40.0,0,0);
    return 1;
    }


    aber so muss es jetzt gehen

    public OnGameModeInit()
    {
    Create3DTextLabel("Polizei Los Santos Dienst",0xCE000000,256.1579,74.5924,1003.6406,40.0,-1,0);
    Create3DTextLabel("Polizei Las Venturas Dienst",0xCE000000,228.9400,168.2599,1003.0234,40.0,-1,0);
    Create3DTextLabel("WasserSchutz Polizei Dienst",0xCE000000,228.9400,168.2599,1003.0234,40.0,-1,0);
    Create3DTextLabel("Los Santos Taxi Dienst (HQ)",0xCE000000,1771.2418,-1907.2025,13.5552,40.0,-1,0);
    Create3DTextLabel("Las Venturas Taxi Dienst",0xCE000000,1771.2418,-1907.2025,13.5552,40.0,-1,0);
    Create3DTextLabel("Los Santos Adac Dienst",0xCE000000,-79.9094,-1135.0229,1.0781,40.0,-1,0);
    Create3DTextLabel("Las Venturas Adac Dienst",0xCE000000,1886.0837,2339.3083,10.8203,40.0,-1,0);
    Create3DTextLabel("San Fierro Adac Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,-1,0);
    Create3DTextLabel("San Andreas Feuerwehr Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,-1,0);
    Create3DTextLabel("San Andreas Xoomer Dienst",0xCE000000,257.3088,1387.4073,10.5859,40.0,-1,0);
    Create3DTextLabel("Los Santos Medic Dienst",0xCE000000,1172.8623,-1323.3154,15.3996,40.0,-1,0);
    Create3DTextLabel("San Fierro Medic Dienst",0xCE000000,-2655.0474,639.3306,14.4531,40.0,-1,0);
    Create3DTextLabel("Las Venturas Medic Dienst",0xCE000000,1607.2433,1816.7847,10.8203,40.0,-1,0);
    Create3DTextLabel("Post Los Santos Dienst",0xCE000000,1117.9919,-1249.7778,15.9281,40.0,-1,0);
    Create3DTextLabel("Post San Fierro Dienst",0xCE000000,-2226.6082,286.9214,35.3203,40.0,-1,0);
    Create3DTextLabel("Post Las Venturas Dienst",0xCE000000,1680.8837,1760.2552,10.8285,40.0,-1,0);
    Create3DTextLabel("Muell Deport Dienst",0xCE000000,-1895.4550,-1683.3735,23.0156,40.0,-1,0);
    return 1;
    }


    probiers mal so

    moment ich glaube du hast einen Parameter vergessen:


    text[] The initial text string.
    color The text Color
    x X-Coordinate
    y Y-Coordinate
    z Z-Coordinate
    DrawDistance The distance from where you are able to see the 3D Text Label <----- das hast du vergessen!
    VirtualWorld The virtual world in which you are able to see the 3D Text
    testLOS 0/1 Test the line-of-sight so this text can't be seen through objects


    Returns The ID of the newly created 3D Text Label


    Create3DTextLabel("text[]",color,x,y,z,drawdistance,virtualworld,testlos);

    public ReSync()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    TogglePlayerControllable(i, 0);
    GameTextForPlayer(i, "Re-Syncronisieren\nBitte warten",3000,4);
    }
    return 1;
    }


    SetTimer("ReSync",100,0);


    wenn ich es so mache, wird man nach diesem command dauerhaft gefreezes :(

    guten abend leute;


    wie mache es, das wenn ich einen Command eingebe, das ich danach für 3 Sekunden gefreezed werde.
    Bei mir klapt das nicht, obwohl keine errors da sind:


    if (strcmp("/blabla", cmdtext, true) == 0)
    {
    if(IsAArmy(playerid))
    {
    SetTimer("ReSync",3000,0);
    SetPlayerPos(playerid,3198.5029296875,-907.90753173828,17.504102706909);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    else return SendClientMessage(playerid, COLOR_RED2, "Du bist nicht Angehöriger der US Army!");
    }


    public ReSync(playerid)
    {
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid, "Re-Syncronisieren\nBitte warten",3000,4);
    return 1;
    }


    man wird zwar geportet, aber nicht gefreezed... :(
    was ist daran falsch?


    mfg xXganzereuroXx

    heyho leute;


    ich habe ein problem, undzwar werden die NPC's nicht in ihre autos geportet:


    #pragma tabsize 0
    #include <a_samp>


    new CARBOTCAR;
    new CARBOTCAR1;


    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("RailRoad","train");
    ConnectNPC("ChiliadFlight","chiliadflight");
    return 1;
    }


    public OnGameModeInit()
    {
    CARBOTCAR = AddStaticVehicle(538, 2864.7500, 1330.8091, 12.1256, 0.0009,1,1); //RailRoad halt
    CARBOTCAR1 = AddStaticVehicle(487,-2345.9314,-1636.8939,483.8792,268.5638,0,1); // CARBOTCAR1 chiliad flight
    AddStaticVehicle(431, -1993.6313, 148.9479, 27.6402, 359.8514,0,1); //bus in sf
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid)) {
    new ip_addr_npc[64+1];
    new ip_addr_server[64+1];
    GetServerVarAsString("bind",ip_addr_server,64);
    GetPlayerIp(playerid,ip_addr_npc,64);

    if(!strlen(ip_addr_server)) {
    ip_addr_server = "127.0.0.1";
    }

    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
    printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
    Kick(playerid);
    return 0;
    }
    printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }

    return 1;
    }



    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1;


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"RailRoad",true))
    {
    PutPlayerInVehicle(playerid,CARBOTCAR,0);
    SetPlayerColor(playerid,0xFFFFFF00);
    SetPlayerSkin(playerid, 61);
    }

    if(!IsPlayerNPC(playerid)) return 1;


    new pname[64];
    GetPlayerName(playerid,pname,64);


    if(!strcmp(pname,"ChiliadFlight",true))
    {
    PutPlayerInVehicle(playerid,CARBOTCAR1,0);
    SetPlayerColor(playerid,0xFFFFFF00);
    SetPlayerSkin(playerid, 61);
    }
    return 1;
    }



    ich sehe gerade nicht den fehler....
    mfg xXganzereuroXx


    //edit: hab den fehler gefunden, es geht wieder.
    ---closed