Beiträge von xDesertx

    Zeig mal den stock spielername und mach bei format(string,sizeof(string),"[PREMIUM] Name: %s | ID: %i",SpielerName(i),i);
    hinteen das i zu GetPlayerID(i) wie hook schon gesagt hat.

    Naja,
    ZCMD ist trotzdem besser :) als alle anderen.
    Es ist Schneller und du kannst den befehl ingame schreiben wie du willst. Aber im script muss der Befehl kleingeschrieben werden
    sonst kommt immer der Befehl existiert nicht

    Gute Tipps:
    Verwende ZCMD,
    weil ZCMD schneller ist, und du kannst den Befehl auch Großschreiben nicht so wie bei OCMD.
    und du braust nicht #pragma unused params verwenden.


    MfG,
    Chriss

    Mehr fehler
    vielleich Hilft das:
    new CarName[][] =
    {
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
    "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
    "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
    "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
    "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
    "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
    "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
    "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
    "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
    "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
    "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
    "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
    "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
    "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
    "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
    "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
    "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
    "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
    "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
    "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
    "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
    "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
    "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
    "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
    "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
    "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
    "Tiller", "Utility Trailer"
    };

    public UpdateTacho() //Tacho Public
    {
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
    {
    new veh = GetPlayerVehicleID(i);
    new veh2 = GetVehicleModel(veh);
    new float:health;
    new Float:Strecke,Float:Geschwindigkeit;
    GetVehiclePos(GetPlayerVehicleID(i),X1[i],Y1[i],Z1[i]);
    Strecke = floatsqroot(floatpower(floatabs(floatsub(X1[i],X2[i])),2)+floatpower(floatabs(floatsub(Y1[i],Y2[i])),2)+floatpower(floatabs(floatsub(Z1[i],Z2[i])),2));
    Geschwindigkeit = (Strecke / (TACHOTIMER /1000)) * 3.6;
    new string[124];
    format(string, 124,"~g~Fahrzeug: ~w~%s~n~~g~Tank: ~w~%d(%s)~n~~g~Km/h: ~w~%d~n~~g~Zustant: ~w~%d", CarName[GetVehicleModel(veh-400)], Tank[veh], GetPlayerVehicleType(veh2), floatround(Geschwindigkeit), GetVehicleHealth(veh, health));//Feher Zeile
    TextDrawSetString(Textdraw3[i],string);
    GetVehiclePos(GetPlayerVehicleID(i),X2[i],Y2[i],Z2[i]);
    TextDrawShowForPlayer(i,Textdraw3[i]);
    }
    else
    {
    TextDrawHideForPlayer(i,Textdraw3[i]);
    }
    }
    return 1;
    }
    Habe Warnung "Tag mismatch" (Zeile mit // makiert)

    Hallo Breadfish,
    könnte mir vielleicht jemand ein Rangeban System schicken mit Whitelist ?
    Bitte kein rcon ban oder so was. Da ich den Spieler den Grund Anzeigen will.


    MfG,
    Chriss

    Eingang ausgang erstellen.
    CMD:kaufen(playerid, params)
    {
    if(HatHaus == 0)
    {
    if(GetPlayerMoney(playerid) >= preis)
    {
    GivePlayerMoney(playerid, -preis);
    Haus = 1;
    }
    }
    return 1;
    }


    beim Eingang einfach
    if(haus = 1)
    ist zwar nur für ein haus.