Oamt Sirene

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • //Warnlichtoamt
    new Olicht[MAX_VEHICLES];
    new light1[MAX_VEHICLES];
    new light2[MAX_VEHICLES];
    new light3[MAX_VEHICLES];
    new light4[MAX_VEHICLES];
    new light5[MAX_VEHICLES];


    if(strcmp(cmdtext, "/olicht", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
    {
    if(Olicht[GetPlayerVehicleID(playerid)] == 0)
    {
    light1[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    light2[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    light3[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    light4[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    light5[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    AttachObjectToVehicle(light1[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.0089111328, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light2[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light3[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light4[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light5[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid,"~r~Warnlicht Aktiviert",5000, 1);
    SendClientMessage(playerid, COLOR_GREY, "Du kannst das Warnlicht mit /olicht wieder ausschalten!");
    Olicht[GetPlayerVehicleID(playerid)] = 1;
    }
    else if(Olicht[GetPlayerVehicleID(playerid)] == 1)
    {
    DestroyObject(light1[GetPlayerVehicleID(playerid)]);
    DestroyObject(light2[GetPlayerVehicleID(playerid)]);
    DestroyObject(light3[GetPlayerVehicleID(playerid)]);
    DestroyObject(light4[GetPlayerVehicleID(playerid)]);
    DestroyObject(light5[GetPlayerVehicleID(playerid)]);
    GameTextForPlayer(playerid,"~r~Warnlicht Deaktiviert",5000, 1);
    SendClientMessage(playerid, COLOR_GREY, "Du kannst das Warnlicht mit /olicht wieder anschalten!");
    Olicht[GetPlayerVehicleID(playerid)] = 0;
    }
    }
    }
    return 1;
    }



  • das klappt ergentwie nicht !


    ich bekomme die erros



    G:\GTA san andreas\Homie\Homies server!!!\samp\gamemodes\homiesmode.pwn(2507) : error 017: undefined symbol "AttachObjectToVehicle"
    G:\GTA san andreas\Homie\Homies server!!!\samp\gamemodes\homiesmode.pwn(2508) : error 017: undefined symbol "AttachObjectToVehicle"
    G:\GTA san andreas\Homie\Homies server!!!\samp\gamemodes\homiesmode.pwn(2509) : error 017: undefined symbol "AttachObjectToVehicle"
    G:\GTA san andreas\Homie\Homies server!!!\samp\gamemodes\homiesmode.pwn(2510) : error 017: undefined symbol "AttachObjectToVehicle"
    G:\GTA san andreas\Homie\Homies server!!!\samp\gamemodes\homiesmode.pwn(2511) : error 017: undefined symbol "AttachObjectToVehicle"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.




    in den zeilen



    AttachObjectToVehicle(light1[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.0089111328, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light2[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light3[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light4[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(light5[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, 2.75, 0.6, 0.0, 0.0, 0.0);

  • doch ab 20 uhr geht es /olicht im oamt auto einfach.