Beiträge von AhaEinHunter

    Moinseeeeeen er meint es soo



    switch(random(27))
    {
    case 0: PutPlayerInVehicle(playerid,Bot1, 0);
    case 1: PutPlayerInVehicle(playerid,Bot2, 0);
    case 2: PutPlayerInVehicle(playerid,Bot3, 0);
    case 3: PutPlayerInVehicle(playerid,Bot4, 0);
    case 4: PutPlayerInVehicle(playerid,Bot5, 0);
    case 5: PutPlayerInVehicle(playerid,Bot6, 0);
    case 6: PutPlayerInVehicle(playerid,Bot7, 0);
    case 7: PutPlayerInVehicle(playerid,Bot8, 0);
    case 8: PutPlayerInVehicle(playerid,Bot9, 0);
    case 9: PutPlayerInVehicle(playerid,Bot10, 0);
    case 10: PutPlayerInVehicle(playerid,Bot11, 0);
    case 11: PutPlayerInVehicle(playerid,Bot12, 0);
    case 12: PutPlayerInVehicle(playerid,Bot13, 0);
    case 13: PutPlayerInVehicle(playerid,Bot14, 0);
    case 14: PutPlayerInVehicle(playerid,Bot15, 0);
    case 15: PutPlayerInVehicle(playerid,Bot16, 0);
    case 16: PutPlayerInVehicle(playerid,Bot17, 0);
    case 17: PutPlayerInVehicle(playerid,Bot18, 0);
    case 18: PutPlayerInVehicle(playerid,Bot19, 0);
    case 19: PutPlayerInVehicle(playerid,Bot20, 0);
    case 20: PutPlayerInVehicle(playerid,Bot21, 0);
    case 21: PutPlayerInVehicle(playerid,Bot22, 0);
    case 22: PutPlayerInVehicle(playerid,Bot23, 0);
    case 23: PutPlayerInVehicle(playerid,Bot24, 0);
    case 24: PutPlayerInVehicle(playerid,Bot25, 0);
    case 25: PutPlayerInVehicle(playerid,Bot26, 0);
    case 26: PutPlayerInVehicle(playerid,Bot27, 0);


    mfg

    versuch es mal soo bitte


    public VehStateCheck()
    {
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
    {
    if(M_Bot[i][PAFK] == 0)
    {
    new Float:health,vehicleid = GetPlayerVehicleID(i),string[256],Float:value,Float:distance,Float:x,Float:y,Float:z;
    GetPlayerPos(i, x, y, z);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,PCarPos[i][PCarX])),2)+floatpower(floatabs(floatsub(y,PCarPos[i][PCarY])),2)+floatpower(floatabs(floatsub(z,PCarPos[i][PCarZ])),2));
    value = floatround(distance * 11000);
    GetVehicleHealth(vehicleid,health);
    if (health >= 900 && health <= 1000)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~r~ Benzin",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 600 && health < 900)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~r~ Benzin",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 380 && health < 600)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~r~ Benzin",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    else if (health >= 0 && health < 380)
    {
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~r~ Benzin",floatround(value/1400),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
    GameTextForPlayer(i,string,850,3);
    }
    PCarPos[i][PCarX] = x;
    PCarPos[i][PCarY] = y;
    PCarPos[i][PCarZ] = z;
    PlayerLastSpeed[i] = floatround(value/1400);
    if(PlayerBlitzed[i] >= 1 && PlayerBlitzed[i] < 4)
    {
    PlayerBlitzed[i]++;
    }
    if(PlayerBlitzed[i] >= 4)
    {
    PlayerBlitzed[i] = 0;
    }
    }
    }
    }
    return 1;
    }


    mfg

    versuchs mal damit bitte


    if (strcmp("/kündigen", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN, "Du hast deinen aktuellen Job gekündigt");
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pChar] = 0;
    PlayerInfo[playerid][pContractTime] = 0;
    return 1;
    }


    mfg

    Alter könnt ihr nicht lesen ? erst morgen wieder schreiben mache heute nix wer heute schreibt die anfrage igno ich .... nur eine mache ich und das ist die von nike ja marcel deine mach ich morgen



    alles klar lasss dir zeit..


    mfg