Beiträge von Boeing747

    Huhu :)


    hab ein problem ich hab nen Checkpoint erstellt und das soll ihn auflösen:


    public Check()
    {
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(PlayerToPoint(4.0,i,-2021.1674,-100.1617,35.1641))
    {
    DisablePlayerCheckpoint(i);
    SendClientMessage(i, COLOR_YELLOW,"Willkommen bei der Fahrschule");
    }
    }
    return 0;
    }


    also aufgelöst wird er nur die Message kommt tausende mal :D.
    wäre schön wenn ihr mir helfen könntet :)


    mfg
    Boeing

    also bei mir sieht des so aus:


    if(GetVehicleModel(newcar)==596||newcar==71||newcar==75||newcar==76||(newcar >= 278 && newcar <= 281))
    {
    if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==14||PlayerInfo[playerid][pLeader]==14) { }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein LSPD Cop !");
    RemovePlayerFromVehicle(playerid);
    }
    }

    hi,
    sry wenn ich euch nerv aber hab noch ne frage^^


    also wenn bei mir jemand in einer fraktion mit spawnwaffen is und ein haus hat bekommt er die waffen net Oo
    hab schon alles ausprobiert ;(
    hier mal der schnipsel aus SetPlayerSpawn:


    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Yakuza spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapon(playerid, 4, 300); //Messer
    GivePlayerWeapon(playerid, 31, 300); //M4
    GivePlayerWeapon(playerid, 24, 600); //Deagle
    GivePlayerWeapon(playerid, 29, 500); //MP5
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -2202.6226,636.0425,49.4429);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }


    danke im Voraus :)

    huhu habe ein problem mit hitman und zwar wenn ich als leader mir selbst hits zuteiln will steht dort: "you are not a hitman"


    hier mal der givehit befehl:


    else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
    {
    if(hitfound == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !");
    return 0;
    }
    tmp = strtok(text, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");
    return 0;
    }
    //giveplayerid = strval(tmp);
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pMember] != 8||PlayerInfo[giveplayerid][pLeader] != 8)
    {
    SendClientMessage(playerid, COLOR_GREY, " That player is not a Hitman !");
    return 0;
    }
    if(GoChase[giveplayerid] < 999)
    {
    SendClientMessage(playerid, COLOR_GREY, " That Hitman is already busy with a Contract !");
    return 0;
    }
    if(IsPlayerConnected(hitid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giver, sizeof(giver));
    GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
    //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(playerid, COLOR_YELLOW, string);
    //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Hitman %s, assigned Hitman %s to kill: %s(ID:%d), for $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    GoChase[giveplayerid] = hitid;
    GetChased[hitid] = giveplayerid;
    GotHit[hitid] = 1;
    hitid = 0;
    hitfound = 0;
    return 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " The Contracted Person is offline, use Contracts in the Portable again !");
    return 0;
    }
    }
    return 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " That Hitman is not Online, or ain't a Hitman !");
    return 0;
    }
    }

    mhh ich kann wenn ich in der sf bank bin immernoch in ls raus^^ und der /exit cmd


    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    //printf("Bizz :%d",i);
    if (PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
    PlayerInfo[playerid][pLocal] = 255;
    }
    }
    if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 78 || GetPlayerVehicleID(playerid) >= 346 && GetPlayerVehicleID(playerid) <= 349)
    {
    TogglePlayerControllable(playerid, 1);
    RemovePlayerFromVehicle(playerid);
    }
    else if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1124.4277,-2037.0146,69.8842);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    }
    else if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
    }
    else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
    }
    else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
    }
    else if(NoFuel[playerid] == 1)
    {
    TogglePlayerControllable(playerid, 1);
    RemovePlayerFromVehicle(playerid);
    NoFuel[playerid] = 0;
    }
    else if(NoKey[playerid] == 1)
    {
    TogglePlayerControllable(playerid, 1);
    RemovePlayerFromVehicle(playerid);
    NoKey[playerid] = 0;
    }
    }
    return 1;
    }

    jo klar verlang ich auch nich :)
    also im script is das bei mir so :)


    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
    {
    if(PlayerInfo[playerid][pPbiskey] != i)
    {
    if(BizzInfo[i][bLocked] == 1)
    {
    GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
    return 1;
    }
    if(BizzInfo[i][bProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
    return 1;
    }
    PlayerMoney[playerid] -= BizzInfo[i][bEntranceCost];
    format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
    ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bProducts]--;
    OnPropUpdate();
    GameTextForPlayer(playerid, string, 5000, 3);
    }
    SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
    SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
    PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
    PlayerInfo[playerid][pLocal] = i+99;
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i);
    printf("%s", string);
    PayLog(string);
    //PlayerInfo[playerid][pLocal] = i;
    }
    else
    {
    GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
    }
    }
    }


    nur bei sowas hatte ich noch nie ne ahnung^^