Neon wie als filterscript

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
  • Wie füge ich diesen neon script als filterscript ein


    #include <Neon>


    new bool:NeonLightToggle[MAX_PLAYERS];


    if(strcmp(strget(cmdtext,0), "/neon", true) == 0)
    {
    if(NeonLightToggle[playerid] == true)
    {
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),0,false);
    NeonLightToggle[playerid] = false;
    }else{
    if(!strlen(strget(cmdtext,1)))
    {
    SendClientMessage(playerid, COLOR_RED, "Benutze: /neon [NEONID]");
    SendClientMessage(playerid, COLOR_RED, "0 - red");
    SendClientMessage(playerid, COLOR_RED, "1 - blue");
    SendClientMessage(playerid, COLOR_RED, "2 - green");
    SendClientMessage(playerid, COLOR_RED, "3 - yellow");
    SendClientMessage(playerid, COLOR_RED, "4 - pink");
    SendClientMessage(playerid, COLOR_RED, "5 - white");
    }else{
    new neonid = strval(strget(cmdtext,1));
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),neonid,true);
    NeonLightToggle[playerid] = true;
    }
    }
    return 1;
    }

  • #include <NeonLightToggle>
    new bool:NeonLightToggle[MAX_PLAYERS];


    if(strcmp(strget(cmdtext,0), "/neon", true) == 0)
    {
    if(NeonLightToggle[playerid] == true)
    {
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),0,false);
    NeonLightToggle[playerid] = false;
    }else{
    if(!strlen(strget(cmdtext,1)))
    {
    SendClientMessage(playerid, COLOR_RED, "Benutze: /neon [NEONID]");
    SendClientMessage(playerid, COLOR_RED, "0 - red");
    SendClientMessage(playerid, COLOR_RED, "1 - blue");
    SendClientMessage(playerid, COLOR_RED, "2 - green");
    SendClientMessage(playerid, COLOR_RED, "3 - yellow");
    SendClientMessage(playerid, COLOR_RED, "4 - pink");
    SendClientMessage(playerid, COLOR_RED, "5 - white");
    }else{
    new neonid = strval(strget(cmdtext,1));
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),neonid,true);
    NeonLightToggle[playerid] = true;
    }
    }
    return 1;
    }


    SetVehicleEngineOn(vehicleid)
    {
    new engine,lights,alarm,doors,bonnet,boot22,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot22,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot22,objective);
    }


    SetVehicleEngineOff(vehicleid) //Ganz nach Unten an besten ;)
    {
    new engine,lights,alarm,doors,bonnet,boot22,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot22,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot22,objective);
    }


    so das wars besser als extra ein fs zu machen :)


    MFG