[Filterscript/Include] Vehiclestreamer

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
  • Dies ist die BETA Version meines Vehiclestreamers!!!


    Vehicle Streamer (c) by Marvv Beta Version


    1)How to install
    2)Important!!!
    3)How to use


    1)
    -Extract all Files!!!
    -Copy the Files in the the right folders!
    -Include the file 'vstreamer.inc' in your Gamemode/Filterscript
    -Open the file 'vstreamer.pwn' and define MAX_PLAYERS at your Servers Slot and compile the Script
    -Run the file 'vstreamer.amx' as FIRST(!) Filterscript
    -WARNING: This ist just a BETA Version


    2)
    -Found Bugs or have any Questions?? --> ICQ:391500558 or http://forum-sa-mp.de/ then write a pm to 'Marvv'
    -This Script is (c)opyright 2010 by Marvv, you can redistribute it and modify it, but you must call my name!!!


    3)
    -Use some of the following Functions/Callbacks:
    //Functions:
    CreateStreamVehicle(modid,Float:PositionX,Float:PositionY,Float:PositionZ,Float:RotationZ,vfarbe1,vfarbe2,respawn_delay=0,Float:vRange=0.0,vworld=-1,vinterior=-1)
    DestroyStreamVehicle(svehicleid)
    GetStreamVehiclePos(svehicleid,&Float:_x,&Float:_y,&Float:_z)
    SetStreamVehiclePos(svehicleid,Float:_x,Float:_y,Float:_z)
    GetStreamVehicleZAngle(svehicleid,&Float:_r)
    SetStreamVehicleZAngle(svehicleid,&Float:_r)
    SetStreamVehicleParamsForPlayer(svehicleid,playerid,objective,doorslocked)
    SetStreamVehicleToRespawn(svehicleid)
    AddStreamVehicleComponent(svehicleid,componentid)
    RemoveStreamVehicleComponent(svehicleid,componentid)
    ChangeStreamVehicleColor(svehicleid, color1, color2)
    GetStreamVehiclePaintJob(svehicleid)
    stock ChangeStreamVehiclePaintjob(svehicleid, paintjobid)
    SetStreamVehicleHealth(svehicleid, Float:health)
    GetStreamVehicleHealth(svehicleid, &Float:health)
    AttachTrailerToStreamVehicle(strailerid, svehicleid)
    DetachTrailerFromStreamVehicle(svehicleid)
    IsTrailerAttachedToStreamVehicl(svehicleid)//Sorry, but 'IsTrailerAttachedToStreamVehicle' would be too long --> Warning
    GetStreamVehicleTrailer(svehicleid)
    GetStreamVehicleModel(svehicleid)
    GetStreamVehicleComponentInSlot(svehicleid, slot)
    GetStreamVehicleComponentType(componentid)
    RepairStreamVehicle(svehicleid)
    GetStreamVehicleVelocity(svehicleid, &Float:X, &Float:Y, &Float:Z)
    SetStreamVehicleVelocity(svehicleid, Float:X, Float:Y, Float:Z)
    GetStreamVehicleDamageStatus(svehicleid, &panels, &doors, &lights, &tires)
    UpdateStreamVehicleDamageStatus(svehicleid, panels, doors, lights, tires)
    SetStreamVehicleVirtualWorld(svehicleid, worldid)
    GetStreamVehicleVirtualWorld(svehicleid)
    PutPlayerInStreamVehicle(playerid,svehicleid,seatid)
    GetPlayerStreamVehicle(playerid)
    IsPlayerInAnyStreamVehicle(playerid)
    IsPlayerInStreamVehicle(playerid,svehicleid)
    //Callbacks:
    OnStreamVehicleDeath(svehicleid,killerid);
    OnStreamVehicleRespray(playerid, svehicleid, color1, color2);
    OnStreamVehicleSpawn(svehicleid);
    OnPlayerEnterStreamVehicle(playerid, svehicleid, ispassenger);
    OnPlayerExitStreamVehicle(playerid, svehicleid);
    OnStreamVehicleMod(playerid, vehicleid, componentid);


    Hier ist die Datei:
    breadfish.de/wcf/attachment/2059/


    Vile Spass!!

    Einmal editiert, zuletzt von Purm ()

  • Leichenschändung macht spass!


    Vehicle Streamer (c) von Marvv Beta Version


    1)Installation
    2)Wichtig
    3)Benutzung


    1)
    -Alle Dateien extrahieren!!!
    -alle dateien in die entsprechenden verzeichnisse kopieren!
    -'vstreamer.inc' in den Gamemode/Filterscript inkludieren
    -'vstreamer.pwn' öffnen und MAX_PLAYERS definieren und dann kompilieren
    -'vstreamer.amx' als erstes filterscript laden
    -WARNING: dies ist eine beta version, die vlt bugs enthalten kann


    2)
    -Fehler gefunden oder fragen? => pn


    3)
    -Hier die Funktionen & Ereignisse
    //Funktionen:
    CreateStreamVehicle(modid,FloatositionX,FloatositionY,FloatositionZ,Float:RotationZ,vfarbe1,vfarbe2,respawn_delay=0,Float:vRange=0.0,vworld=-1,vinterior=-1)
    DestroyStreamVehicle(svehicleid)
    GetStreamVehiclePos(svehicleid,&Float:_x,&Float:_y,&Float:_z)
    SetStreamVehiclePos(svehicleid,Float:_x,Float:_y,Float:_z)
    GetStreamVehicleZAngle(svehicleid,&Float:_r)
    SetStreamVehicleZAngle(svehicleid,&Float:_r)
    SetStreamVehicleParamsForPlayer(svehicleid,playerid,objective,doorslocked)
    SetStreamVehicleToRespawn(svehicleid)
    AddStreamVehicleComponent(svehicleid,componentid)
    RemoveStreamVehicleComponent(svehicleid,componentid)
    ChangeStreamVehicleColor(svehicleid, color1, color2)
    GetStreamVehiclePaintJob(svehicleid)
    stock ChangeStreamVehiclePaintjob(svehicleid, paintjobid)
    SetStreamVehicleHealth(svehicleid, Float:health)
    GetStreamVehicleHealth(svehicleid, &Float:health)
    AttachTrailerToStreamVehicle(strailerid, svehicleid)
    DetachTrailerFromStreamVehicle(svehicleid)
    IsTrailerAttachedToStreamVehicl(svehicleid)//Sorry, but 'IsTrailerAttachedToStreamVehicle' would be too long --> Warning
    GetStreamVehicleTrailer(svehicleid)
    GetStreamVehicleModel(svehicleid)
    GetStreamVehicleComponentInSlot(svehicleid, slot)
    GetStreamVehicleComponentType(componentid)
    RepairStreamVehicle(svehicleid)
    GetStreamVehicleVelocity(svehicleid, &Float:X, &Float:Y, &Float:Z)
    SetStreamVehicleVelocity(svehicleid, Float:X, Float:Y, Float:Z)
    GetStreamVehicleDamageStatus(svehicleid, &panels, &doors, &lights, &tires)
    UpdateStreamVehicleDamageStatus(svehicleid, panels, doors, lights, tires)
    SetStreamVehicleVirtualWorld(svehicleid, worldid)
    GetStreamVehicleVirtualWorld(svehicleid)
    PutPlayerInStreamVehicle(playerid,svehicleid,seatid)
    GetPlayerStreamVehicle(playerid)
    IsPlayerInAnyStreamVehicle(playerid)
    IsPlayerInStreamVehicle(playerid,svehicleid)
    //Ereignisse:
    OnStreamVehicleDeath(svehicleid,killerid);
    OnStreamVehicleRespray(playerid, svehicleid, color1, color2);
    OnStreamVehicleSpawn(svehicleid);
    OnPlayerEnterStreamVehicle(playerid, svehicleid, ispassenger);
    OnPlayerExitStreamVehicle(playerid, svehicleid);
    OnStreamVehicleMod(playerid, vehicleid, componentid);