Beiträge von IntelCore.

    Guten Tag,


    Und zwar wenn ich /loadpacks 5 eingebe kommt Dieser Befehl wurde nicht gefunden.
    Und wodran kann dieses Problem liegen ?


    Spoiler anzeigen

    CMD:loadpacks(playerid,params[])
    {
    if(!IsLoggedIn(playerid))return 1;
    if(Spieler[playerid][pTutorial] > 0)return SendClientMessage(playerid, COLOR_GREY, "Du bist derzeit im Tutorial, und kannst keine Befehle benutzen.");
    if(!(Spieler[playerid][pFraktion] == 5 || Spieler[playerid][pFraktion] == 6))return SendClientMessage(playerid, COLOR_GREY, "* Du bist keiner Gang.");
    new packs;
    if(sscanf(params,"i",packs))return SendClientMessage(playerid,COLOR_GREY,"Befehl: /loadweaponpacks [1-5 Packete]");
    if(!IsPlayerInRangeOfPoint(playerid, 5, 218.6480,7.8733,2.5708))return SendClientMessage(playerid, 0xFFFFFFFF, "Du befindest dich nicht an der Ladezone.");
    new vid = GetPlayerTranporter(playerid); new preis = 7500*packs; new str[128];
    if(Transporter[vid][Packete] >= 5)return SendClientMessage(playerid, 0xFFFFFFFF, "Du hast bereits 5 Packete aufgeladen.");
    Transporter[vid][Packete] = packs;
    GiveMoney(playerid, -preis);
    format(str, sizeof str, "Du hast %i Packete für $%i gekauft, fahre nun zur Base und lade sie dort ab.", packs, preis);
    SendClientMessage(playerid, 0x73FF00FF, str);
    return 1;
    }


    Jeffry:

    malE:


    Hier bitte. :)

    Spoiler anzeigen
    ocmd:blaulicht(playerid,params[])
    {
    new item[20],vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
    if(!IsPlayerInAnyVehicle(playerid))return 1;
    if(sscanf(params,"s[64]",item))return SendClientMessage(playerid, C_GREY, "Benutze: {FFFFFF}/sirene [1] oder [2]");
    if(!strcmp(item, "2", false))
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560) {
    if(SireneAn[vehicleid] == false) {
    sirene[1][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[1][vehicleid], GetPlayerVehicleID(playerid), 0.499999,0.509999,0.629999,0.000000,-0.000000,180.000259);
    sirene[2][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[2][vehicleid], GetPlayerVehicleID(playerid), -0.025000,-1.384999,0.449999,0.000000,-0.000000,0.180374);
    sirene[3][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[3][vehicleid], GetPlayerVehicleID(playerid), 0.499999,0.509999,0.629999,0.000000,-0.000000,180.000259);
    SireneAn[vehicleid] = true;
    return 1;
    }
    else if(SireneAn[vehicleid] == true) {
    DestroyObject(sirene[1][vehicleid]);
    DestroyObject(sirene[2][vehicleid]);
    DestroyObject(sirene[3][vehicleid]);
    SireneAn[vehicleid] = false;
    return 1;
    }
    return 1;
    }
    else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426) {
    if(SireneAn[vehicleid] == false) {
    sirene[1][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[1][vehicleid], GetPlayerVehicleID(playerid), 0.470000,0.299999,0.664999,0.000000,0.000000,180.179916);
    //AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0 ,2.6,0,0,0,0);//Vorne Mitte
    sirene[3][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[3][vehicleid], GetPlayerVehicleID(playerid), -0.009999,-1.789999,0.355000,0.000000,0.000000,0.180035);
    SireneAn[vehicleid] = true;
    return 1;
    }
    if(SireneAn[vehicleid] == true) {
    DestroyObject(sirene[1][vehicleid]);
    DestroyObject(sirene[2][vehicleid]);
    DestroyObject(sirene[3][vehicleid]);
    SireneAn[vehicleid] = false;
    return 1;
    }
    return 1;
    }
    return 1;
    }
    if(!strcmp(item, "1", false))
    {
    if(GetVehicleModel(560)) {
    if(SireneAn[vehicleid] == false) {
    sirene[0][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid], GetPlayerVehicleID(playerid), 0.629999,0.700000,0.375000,0.000000,0.000000,0.000000);
    SireneAn[vehicleid] = true;
    return 1;
    }
    else if(SireneAn[vehicleid] == true) {
    DestroyObject(sirene[0][vehicleid]);
    SireneAn[vehicleid] = false;
    return 1;
    }
    return 1;
    }
    else if(GetVehicleModel(426)) {
    if(SireneAn[vehicleid] == false) {
    sirene[0][vehicleid] = CreateObject(19797,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid], GetPlayerVehicleID(playerid), -0.025000,-1.384999,0.449999,0.000000,-0.000000,0.180374);
    SireneAn[vehicleid] = true;
    return 1;
    }
    if(SireneAn[vehicleid] == true) {
    DestroyObject(sirene[0][vehicleid]);
    SireneAn[vehicleid] = false;
    return 1;
    }
    }
    return 1;
    }
    return 1;
    }

    Guten Abend Community,


    Ich stelle heute mein Selfmade Register/Login Script für euch bereit.
    Da ich viele gesehen habe das die nicht mit der MySQL R39-3 nicht klar kommen habe ich nun eins geschrieben.
    Das Script ist nichts großes aber für Anfänger hilfreich, das Script erstellt automatisch eine Tabelle für die Datenbank.


    Download: klick mich
    Pastebin: klick mich


    Mit freundlichen Grüßen
    IntelCore.

    ocmd:fkasse(playerid)
    {
    if(Spieler[playerid][Fraktion] == 6) // anpassen!
    {
    new string[66];
    format(string,sizeof(string),"Aktueller Kassenstand: %i",BallasK);
    SendClientMessage(playerid,rot,string);
    }
    return 1;
    }


    Hier bitte.
    Ne mal im ernst, wieso versuchst Du sowas nicht einfach selber als Copy and Paste ?
    Wir sind hier nicht auf dem Basar!!

    format(query,sizeof(query),"UPDATE `user` SET `level`= '%i', `money`= '%i', `alevel`= '%i', `fraktion`= '%i', `rang`= '%i' WHERE `id` ='%i'",sInfo[playerid][level],GetPlayerMoney(playerid),sInfo[playerid][alevel],sInfo[playerid][fraktion],sInfo[playerid][rang],sInfo[playerid][db_id]);
    mysql_function_query(dbhandle,query,false,"","");


    Mfg

    Jeffry:


    stock NiceMoney(money) // @Jeffry
    {
    new bmess[15];
    format(bmess, sizeof(bmess), "%d", money);
    if(money > 0)
    {
    for(new l=strlen(bmess)-3; l>0; l-=3)
    {
    if(l>0)
    {
    strins(bmess, ".", l);
    }
    }
    }
    else
    {
    for(new z=strlen(bmess)-3; z>1; z-=3)
    {
    if(z>1)
    {
    strins(bmess, ".", z);
    }
    }
    }
    format(bmess, sizeof(bmess), "%s,00", bmess);
    return bmess;
    }



    stock GetMoney(playerid) return pInfo[playerid][pGeld];


    stock SetMoney(playerid, value)
    {
    if(!IsPlayerConnected(playerid))return 0;
    pInfo[playerid][pGeld] = value;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, pInfo[playerid][pGeld]);
    new str[32];
    format(str, sizeof(str), "%s$", NiceMoney(GetMoney(playerid)));
    PlayerTextDrawSetString(playerid, Textdraw48[playerid], str);
    return 1;
    }