Beiträge von ]BSC[freddy

    @ Klinsen:


    CreateExplosion(6,10, x, y, z); das muss so aussehen CreateExplosion( x, y, z,6,10);



    Also so bekomme ich keine Errors oder warns:



    /*
    * Created with Visual Pawn 0.1.56
    * User: Maximilian
    * Date: 08.01.2009
    * Time: 20:49
    */


    #pragma tabsize 0
    #include <a_samp>


    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #if defined FILTERSCRIPT


    public OnFilterScriptInit() {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit() {
    return 1;
    }


    #else


    main() {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit() {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit() {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }


    public OnPlayerConnect(playerid) {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }


    public OnPlayerSpawn(playerid) {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason) {
    return 1;
    }


    public OnVehicleSpawn(vehicleid) {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid) {
    return 1;
    }


    public OnPlayerText(playerid, text[]) {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[]) {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/explodeme", cmdtext, true, 10) == 0)
    {
    new auto;
    GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    DestroyVehicle(auto);
    CreateExplosion(x, y, z,6,10);
    return 1;
    }


    return 0;
    }


    public OnPlayerInfoChange(playerid) {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid) {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate) {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid) {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid) {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid) {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid) {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid) {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row) {
    return 1;
    }


    public OnPlayerExitedMenu(playerid) {
    return 1;
    }

    wenn ich das richtug verstanden habe, dann hast du EIN Object(Aufzug).



    new lift;


    lift = CreateObject(991, 1551.723633, -1699.922485, 12.563701, 89.3814, 0.0000, 0.0000);



    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/liftdown", true) == 0) // --RUNTER--
    {
    MoveObject(lift,1551.723633, -1699.922485, 12.563701,4); //UNTEN
    SendClientMessage(playerid,COLOR_GREEN,"[LIFT] Lift move down!");
    return 1;
    }


    if(strcmp(cmdtext,"/liftup", true) == 0) // --HOCH--
    {
    MoveObject(lift,1550.837158, -1699.185669, 27.355524,4); //OBEN
    SendClientMessage(playerid,COLOR_GREEN,"[LIFT] Lift move up!");
    return 1;
    }
    return 0;
    }


    kann sein, dass ich das komplett falsch verstanden hab^^


    allerdings würde sich danach der lift nicht nur längs der Z-achse verschieben...also müsstest du "mitlaufen"....^^

    wenn ja, dann änder mal das hier:



    default:
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1524.2244,-1358.9761,330.0000);
    SetPlayerFacingAngle(playerid,357.6906);
    SetPlayerCameraPos(playerid, 1524.2244,-1358.9761,330.0000);
    SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719);
    }


    (public SetupPlayerForClassSelection(playerid))

    also ich habe einen /hack cmd geamcht, aber der will nich so richtg, ich weiß aber nich warum^^.


    so siehts aus:



    if(strcmp(cmd, "/hack", true) == 0)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsAMember(playerid) || PlayerInfo[playerid][pFMember] < 255)
    {
    if(PlayerInfo[playerid][pRank] < 2)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 2 oder höher! !");
    return 1;
    }
    if(PlayerToPoint(20, i,1539.670,-1628.510,15.928))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s hackt das LSPD-Tor...Ihr habt 35 Sekunden, um ihn aufzuhalten.", sendername);
    SendTeamMessage(2, COLOR_RED, string);
    SendClientMessage(playerid, COLOR_RED, " Es dauert 35sek das Tor zu knacken. Die Polizei ist alamiert!!Schnell!");
    CP[i] = 25;
    SetPlayerCheckpoint(i,1605.5929,-1635.7700,13.7188,4.0);
    hackpickup = CreatePickup ( 1212, 3, 1605.5929,-1635.7700,13.7188 );
    SetTimer("LSPDHACK", 35000, 0);
    SetTimer("Count", 10000, 0);
    SetTimer("Count2", 20000, 0);
    SetTimer("Count3", 30000, 0);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist nicht am LSPD-Haupttor !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist in keiner Gang !");
    }
    }
    }
    return 1;
    }



    Und es kommt IMMER Du bist nicht am LSPD-Tor. Aber ich habe extra de Radius ganz groß gemacht, und auch die coords überprüft.


    ciao freddy