Beiträge von Blackshadowscript

    enum buildingsEnum{
    Float:b_x,
    Float:b_y,
    Float:b_z,
    Float:b_ix,
    Float:b_iy,
    Float:b_iz,
    b_Interior,
    b_shopname[15]
    }



    new bInfo[] [buildingsEnum] =
    {
    {1368.9445,-1279.7567,13.5469,285.6350,-41.4551,1001.5156,1,"AMMUN1"}//ammunation1
    };




    ocmd befehl:


    ocmd:reingehen(playerid,params[])
    {
    for(new i=0; i<sizeof(bInfo); i++)
    {
    if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i] [b_x],bInfo[i] [b_y],bInfo[i] [b_z]))continue;
    SetPlayerPos(playerid,bInfo[i] [b_ix],bInfo[i] [b_iy],bInfo[i] [b_iz]);
    SetPlayerInterior(playerid,bInfo[i] [b_Interior]);
    SetPlayerVirtualWorld(playerid,i);
    SetPlayerShopName(playerid,bInfo[i] [b_shopname]);
    return 1;

    }

    return 1;
    }
    ocmd:verlassen(playerid,params[])
    {
    for(new i=0; i<sizeof(bInfo); i++)
    { if(GetPlayerVirtualWorld(playerid) !=i)continue;
    if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i] [b_ix],bInfo[i] [b_iy],bInfo[i] [b_iz]))continue;
    SetPlayerPos(playerid,bInfo[i] [b_x],bInfo[i] [b_y],bInfo[i] [b_z]);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    return 1;
    }



    Ich frage mich wie ich da neue interiors mache

    ocmd:autosetzen(playerid,params[])


    {


    if(!isAdmin(playerid,8)) return SendClientMessage(playerid,helbau,"Du hast nicht die passende Rechte dafür!");


    new mID,pID;


    if(sscanf(params,"ud",pID,mID))return SendClientMessage(playerid,helbau,"Benutze: /autosetzen [playerid] [model]");


    if(mID<400||mID>611)return SendClientMessage(playerid,rot,"Ungültige Modelid!");


    new Float:X,Float:Y,Float:Z,Float:R;


    GetPlayerPos(pID,X,Y,Z);


    SetPlayerFacingAngle(pID,R);


    new string[128], string1[128];


    format(string, sizeof(string), "INSERT INTO `Autos` (`Besitzer`, `model`, `x`, `y`, `z`, `r`) VALUES (%d, %d, %f, %f, %f, %f)",


    pID, mID, X, Y, Z, R


    );


    format(string1, sizeof(string1), "Du hast erfolgreich das Auto mit der Model ID %d erstellt!", mID);


    SendClientMessage(playerid, grün, string1);


    CreateVehicle(mID, X, Y, Z, R, -1, -1, -1);


    mysql_function_query(dbhandle,string,false," "," ");



    return 1;


    }