Beiträge von AroX

    Guten Tag liebe Scripter,

    Ich möchte mir gerne einen Bot erstellen in SA:MP, ich weiß

    auch wie man ihn macht aber ich möchte halt gerne das er eine Aktion macht

    dafür bräuchte ich den Code zum Winken würde mich freuen wenn mir jemand helfen würde. :)


    Mit besten Grüßen

    leader_king :!:


    Hoffe das reicht ^^


    switch(GetPlayerWeapon(playerid))
    {
    case 0..21:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    case 22:
    {
    SetPlayerAttachedObject(playerid, 1, 19082, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19082, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 23:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 24:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 25:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 26:
    {
    SetPlayerAttachedObject(playerid, 1, 19082, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19082, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
    }
    case 27:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 28:
    {
    SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19082, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 29:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 30:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 31:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 32:
    {
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19082, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 33:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
    }
    case 34:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 35:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 36:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 37:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 38:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 39..46:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    }
    }


    else if(LASER[playerid] == 5)//Grun
    {
    switch(GetPlayerWeapon(playerid))
    {
    case 0..21:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    case 22:
    {
    SetPlayerAttachedObject(playerid, 1, 19083, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19083, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 23:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 24:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 25:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 26:
    {
    SetPlayerAttachedObject(playerid, 1, 19083, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19083, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
    }
    case 27:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 28:
    {
    SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19083, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 29:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 30:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 31:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 32:
    {
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19083, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 33:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
    }
    case 34:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 35:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 36:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 37:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 38:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 39..46:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    }
    }


    else if(LASER[playerid] == 6)//Gelb
    {
    switch(GetPlayerWeapon(playerid))
    {
    case 0..21:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    case 22:
    {
    SetPlayerAttachedObject(playerid, 1, 19084, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19084, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 23:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 24:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 25:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 26:
    {
    SetPlayerAttachedObject(playerid, 1, 19084, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19084, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
    }
    case 27:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 28:
    {
    SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19084, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 29:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
    }
    case 30:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 31:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 32:
    {
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
    SetPlayerAttachedObject(playerid, 2, 19084, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
    }
    case 33:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
    }
    case 34:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
    }
    case 35:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 36:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
    }
    case 37:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 38:
    {
    RemovePlayerAttachedObject(playerid, 2);
    SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
    }
    case 39..46:
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    }
    }
    }
    return 1;
    }

    Guten Tag liebe SA-MP Community!
    Ich hoffe sie können mir bei meinem Error helfen..


    Error
    :\Users\Lukas\Desktop\LoHScript.pwn(54448) : error 010: invalid function or declaration


    Zeilen
    {
    RemovePlayerAttachedObject(playerid, 1);
    RemovePlayerAttachedObject(playerid, 2);
    }
    }
    }
    }
    return 1; //Zeile(54448)
    }


    Bitte um schnelle Hilfe.. vielen dank ^^ !

    Guten Tag,


    Ich möchte gerne wissen wie ich in meinem kleinen Motor System einfügen kann das ich den Motor
    auch mit STRG starten kann, hier mal mein System.

    if(strcmp(cmdtext,"/Motor", true) == 0)
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}Fahrräder haben {FF0000}keinen{FFFFFF} Motor!");
    return 1;
    }
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new cveh = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid) &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
    {
    if(cveh != INVALID_VEHICLE_ID)
    {
    if(EngineStatus[cveh] == 0)
    {
    GetVehicleParamsEx(cveh,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(cveh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    EngineStatus[cveh] = 1;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "=> %s schaltet den Motor an.", sendername);
    ProxDetector(30.0, playerid, string, lila,lila,lila,lila,lila);
    gGas[playerid] = 1;
    }
    else if(EngineStatus[cveh] == 1)
    {
    GetVehicleParamsEx(cveh,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(cveh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    EngineStatus[cveh] = 0;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "=> %s schaltet den Motor ab.", sendername);
    ProxDetector(30.0, playerid, string, lila,lila,lila,lila,lila);
    gGas[playerid] = 1;
    }
    }
    }
    else {
    SendClientMessage(playerid, COLOR_RED, "Sie befinden sich in keinem Fahrzeug.");
    }
    return 1;
    }


    Ich würde mich freuen wenn mir jemand helfen kann. :)
    Mit Freundlichen Grüßen
    leader_king ^^

    Würden uns sehr freuen, wir würden über Paypal Zahlen können!
    Bitte gleich eine Testserver IP posten(wenn man einen zu Verfügung stellen kann )

    Zitat

    Wir würden uns freuen wenn ihr jetzt auf Country Roleplay kommt
    Servereröffnung gerade: 5.9.147.14:3660


    Meine Meinung vom Server wo ich drauf war!


    Ihr seit ein Reallife Server?
    2/10 im /o chat schreiben Admins "Ab 17:00uhr bekommen alle level 3"
    da frage ich mich wo bleibt dort der Spaß ??


    Forum: 0/10 Download Style Forum wurde schlecht aufgebaut!


    Server an sich 3/10


    Community 1/10


    8|