13.02.2008, 22:32
[INC] tAxI's Advanced Vehicle Streamer/Commands
-=<:: Credits to On_Top_Non_Stop for the SetStreamVehicleHealth command ::>=-
OK this system is a fairly hefty modification for almost all of the vehicle commands that are native to sa-mp and they are designed to totally replace the vehicle commands with a more advanced system. Currently the system boasts:
THE ONLY vehicle streamer on sa-mp to date (yay to me lol)
AutoStream backup just in case ppl miss any normal create or add vehicles in their script(this will replace all normal vehicles with streamed vehicles - nice little innovation i came up with last nite :P - cannot be deactivated :P)
Toggle autosave of vehicle mods and color changes - when activated will save any mods made to a vehicle in default modshop like tansfender or WAA or loco etc and when the vehicle is destroyed it will respawn with the mods still applied (can be disabled in script if not needed - also only works as long is server is running, mods will be lost on server restart)
Pretty much all vehicle commands including link to interior, params, mods, virtualworld etc etc etc etc
New system that monitors abandoned vehicles and resets them after 5 minutes of inactivity - useful for clearing up unused vehicles that are just randomly lieing around
There is a readme file inside the Package to help you install it and correctly use it.
Click HERE to download
Currently this is the list of commands and callbacks included in the streamer package:
================================================== ===========================================
native tAxI_OnGameModeInit()
native tAxI_OnVehicleDeath(vehicleid)
native tAxI_OnPlayerEnterVehicle(playerid,vehicleid)
native tAxI_OnPlayerExitVehicle(vehicleid)
native tAxI_OnVehicleMod(vehicleid,componentid)
native tAxI_OnVehicleRespray(vehicleid,color1,color2)
native tAxI_OnVehiclePaintjob(vehicleid,paintjobid)
native tAxI_OnVehicleSpawn(vehicleid)
native tAxI_OnPlayerKeyStateChange(playerid,newkeys)
native SetBikeAntiFallForPlayer(playerid,bool:toggle)
native ToggleAutoModSave(bool:toggle)
native CreateStreamVehicle(modelid,Float
,Float:y,Float: z,Float:a,col1,col2)
native DestroyStreamVehicle(vstreamid)
native SetStreamVehicleToRespawn(vstreamid)
native CreateTempStreamVehicle(modelid,Float
,Float:y,Fl oat:z,Float:a,col1,col2)
native GetPlayerVehicleStreamID(playerid)
native GetVehicleStreamID(vehicleid)
native GetVehicleStreamModel(vstreamid)
native GetStreamVehicleID(vstreamid)
native SetStreamVehiclePos(vstreamid,Float
,Float:y,Floa t:z,Float:a)
native SetVehicleStreamSpawnInfo(vstreamid,vmodel,Float
,Float:y,Float:z,Float:a,color1,color2)
native ForceStreamVehicleSpawn(vstreamid,Float
,Float:y, Float:z,Float:a,worldid,interiorid,objective,UseSa vedMods)
native ChangeStreamVehiclePaintjob(vstreamid,paintjobid)
native ChangeStreamVehicleColor(vstreamid,col1,col2)
native AddStreamVehicleMod(vstreamid,componentid)
native SetStreamVehicleParamsForPlayer(vstreamid,playerid ,objective,doorslocked);
native LinkStreamVehicleToInterior(vstreamid,interiorid)
native SetStreamVehicleVirtualWorld(vstreamid,world)
native GetStreamVehicleVirtualWorld(vstreamid)
native ImportModsFromFile(const savefile[])
native ExportModsToFile(const savefile[])
native GetStreamVehiclePos(vstreamid,Float:&Xpos,Float:&Y pos,Float:&Zpos)
native GetStreamVehicleZAngle(vstreamid,Float:&Angle)
native PutPlayerInStreamVehicle(playerid,vstreamid)
native SetStreamVehicleHealth(vstreamid,Float:health)
================================================== ===========================================
I make no assurances that this will work 100% yet but it is pretty good from what i can see...still in BETA stages though so let me know how its running guys
ENJOY!!!
-=<:: Credits to On_Top_Non_Stop for the SetStreamVehicleHealth command ::>=-
OK this system is a fairly hefty modification for almost all of the vehicle commands that are native to sa-mp and they are designed to totally replace the vehicle commands with a more advanced system. Currently the system boasts:
THE ONLY vehicle streamer on sa-mp to date (yay to me lol)
AutoStream backup just in case ppl miss any normal create or add vehicles in their script(this will replace all normal vehicles with streamed vehicles - nice little innovation i came up with last nite :P - cannot be deactivated :P)
Toggle autosave of vehicle mods and color changes - when activated will save any mods made to a vehicle in default modshop like tansfender or WAA or loco etc and when the vehicle is destroyed it will respawn with the mods still applied (can be disabled in script if not needed - also only works as long is server is running, mods will be lost on server restart)
Pretty much all vehicle commands including link to interior, params, mods, virtualworld etc etc etc etc
New system that monitors abandoned vehicles and resets them after 5 minutes of inactivity - useful for clearing up unused vehicles that are just randomly lieing around

There is a readme file inside the Package to help you install it and correctly use it.
Click HERE to download
Currently this is the list of commands and callbacks included in the streamer package:
================================================== ===========================================
native tAxI_OnGameModeInit()
native tAxI_OnVehicleDeath(vehicleid)
native tAxI_OnPlayerEnterVehicle(playerid,vehicleid)
native tAxI_OnPlayerExitVehicle(vehicleid)
native tAxI_OnVehicleMod(vehicleid,componentid)
native tAxI_OnVehicleRespray(vehicleid,color1,color2)
native tAxI_OnVehiclePaintjob(vehicleid,paintjobid)
native tAxI_OnVehicleSpawn(vehicleid)
native tAxI_OnPlayerKeyStateChange(playerid,newkeys)
native SetBikeAntiFallForPlayer(playerid,bool:toggle)
native ToggleAutoModSave(bool:toggle)
native CreateStreamVehicle(modelid,Float

native DestroyStreamVehicle(vstreamid)
native SetStreamVehicleToRespawn(vstreamid)
native CreateTempStreamVehicle(modelid,Float

native GetPlayerVehicleStreamID(playerid)
native GetVehicleStreamID(vehicleid)
native GetVehicleStreamModel(vstreamid)
native GetStreamVehicleID(vstreamid)
native SetStreamVehiclePos(vstreamid,Float

native SetVehicleStreamSpawnInfo(vstreamid,vmodel,Float

native ForceStreamVehicleSpawn(vstreamid,Float

native ChangeStreamVehiclePaintjob(vstreamid,paintjobid)
native ChangeStreamVehicleColor(vstreamid,col1,col2)
native AddStreamVehicleMod(vstreamid,componentid)
native SetStreamVehicleParamsForPlayer(vstreamid,playerid ,objective,doorslocked);
native LinkStreamVehicleToInterior(vstreamid,interiorid)
native SetStreamVehicleVirtualWorld(vstreamid,world)
native GetStreamVehicleVirtualWorld(vstreamid)
native ImportModsFromFile(const savefile[])
native ExportModsToFile(const savefile[])
native GetStreamVehiclePos(vstreamid,Float:&Xpos,Float:&Y pos,Float:&Zpos)
native GetStreamVehicleZAngle(vstreamid,Float:&Angle)
native PutPlayerInStreamVehicle(playerid,vstreamid)
native SetStreamVehicleHealth(vstreamid,Float:health)
================================================== ===========================================
I make no assurances that this will work 100% yet but it is pretty good from what i can see...still in BETA stages though so let me know how its running guys

ENJOY!!!