[Plugin] Streamer Plugin with Vehicle Streamer
#1

I've decided to open new topic, I don't want to trash original one. I would like if Incognito was merge it into offical streamer, but before hard testing needed to avoid bugs.

This streamer version is 2.9.1

pawn Code:
#define STREAMER_TYPE_VEHICLE (8)

#define STREAMER_VEHICLE_TYPE_STATIC (0)
#define STREAMER_VEHICLE_TYPE_DYNAMIC (1)

native AttachDynamicObjectToVehicle(STREAMER_TAG_OBJECT objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC);
native STREAMER_TAG_3D_TEXT_LABEL CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
native AttachDynamicAreaToVehicle(STREAMER_TAG_AREA areaid, vehicleid, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC, Float:offsetx = 0.0, Float:offsety = 0.0, Float:offsetz = 0.0);

// Natives (Vehicles)
native STREAMER_TAG_VEHICLE CreateDynamicVehicle(modelid, Float:fX, Float:fY, Float:fZ, Float:fRot, color1, color2, respawndelay, addsiren = 0, worldid = -1, interiorid = 0, playerid = -1, Float:streamdistance = STREAMER_VEHICLE_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
native DestroyDynamicVehicle(STREAMER_TAG_VEHICLE vehicleid);
native IsValidDynamicVehicle(STREAMER_TAG_VEHICLE vehicleid);
native IsDynamicVehicleStreamedIn(STREAMER_TAG_VEHICLE vehicleid, forplayerid);
native GetDynamicVehicleSpawnInfo(STREAMER_TAG_VEHICLE vehicleid, &Float:fX, &Float:fY, &Float:fZ, &Float:fRot, &color1, &color2, &siren);
native GetDynamicVehiclePos(STREAMER_TAG_VEHICLE vehicleid, &Float:x, &Float:y, &Float:z);
native SetDynamicVehiclePos(STREAMER_TAG_VEHICLE vehicleid, Float:x, Float:y, Float:z);
native GetDynamicVehicleZAngle(STREAMER_TAG_VEHICLE vehicleid, &Float:z_angle);
native GetDynamicVehicleRotationQuat(STREAMER_TAG_VEHICLE vehicleid, &Float:w, &Float:x, &Float:y, &Float:z);
native SetDynamicVehicleZAngle(STREAMER_TAG_VEHICLE vehicleid, Float:z_angle);
native Float:GetDynamicVehDistanceFromPoint(STREAMER_TAG_VEHICLE vehicleid, Float:X, Float:Y, Float:Z);
native SetDynamicVehParamsForPlayer(STREAMER_TAG_VEHICLE vehicleid,playerid,objective,doorslocked);
native SetDynamicVehicleParamsEx(STREAMER_TAG_VEHICLE vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
native GetDynamicVehicleParamsEx(STREAMER_TAG_VEHICLE vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
native GetDynamicVehParamsSirenState(STREAMER_TAG_VEHICLE vehicleid);
native SetDynamicVehParamsCarDoors(STREAMER_TAG_VEHICLE vehicleid, driver, passenger, backleft, backright);
native GetDynamicVehParamsCarDoors(STREAMER_TAG_VEHICLE vehicleid, &driver, &passenger, &backleft, &backright);
native SetDynamicVehParamsCarWindows(STREAMER_TAG_VEHICLE vehicleid, driver, passenger, backleft, backright);
native GetDynamicVehParamsCarWindows(STREAMER_TAG_VEHICLE vehicleid, &driver, &passenger, &backleft, &backright);
native SetDynamicVehicleToRespawn(STREAMER_TAG_VEHICLE vehicleid);
native LinkDynamicVehicleToInterior(STREAMER_TAG_VEHICLE vehicleid, interiorid);
native GetDynamicVehicleInterior(STREAMER_TAG_VEHICLE vehicleid);
native AddDynamicVehicleComponent(STREAMER_TAG_VEHICLE vehicleid, componentid);
native RemoveDynamicVehicleComponent(STREAMER_TAG_VEHICLE vehicleid, componentid);
native ChangeDynamicVehicleColor(STREAMER_TAG_VEHICLE vehicleid, color1, color2);
native GetDynamicVehicleColor(STREAMER_TAG_VEHICLE vehicleid, &color1, &color2);
native ChangeDynamicVehiclePaintjob(STREAMER_TAG_VEHICLE vehicleid, paintjobid);
native GetDynamicVehiclePaintjob(STREAMER_TAG_VEHICLE vehicleid);
native SetDynamicVehicleHealth(STREAMER_TAG_VEHICLE vehicleid, Float:health);
native GetDynamicVehicleHealth(STREAMER_TAG_VEHICLE vehicleid, &Float:health);
native AttachTrailerToDynamicVehicle(STREAMER_TAG_VEHICLE trailerid, STREAMER_TAG_VEHICLE vehicleid);
native DetachTrailerFromDynamicVeh(STREAMER_TAG_VEHICLE vehicleid);
native IsTrailerAttachedToDynamicVeh(STREAMER_TAG_VEHICLE vehicleid);
native GetDynamicVehicleTrailer(STREAMER_TAG_VEHICLE vehicleid);
native SetDynamicVehicleNumberPlate(STREAMER_TAG_VEHICLE vehicleid, plate[]);
native GetDynamicVehicleNumberPlate(STREAMER_TAG_VEHICLE vehicleid, plate[], size = sizeof(plate));
native GetDynamicVehicleModel(STREAMER_TAG_VEHICLE vehicleid);
native GetDynamicVehComponentInSlot(STREAMER_TAG_VEHICLE vehicleid, slot); // There is 1 slot for each CARMODTYPE_*
native RepairDynamicVehicle(STREAMER_TAG_VEHICLE vehicleid); // Repairs the damage model and resets the health
native GetDynamicVehicleVelocity(STREAMER_TAG_VEHICLE vehicleid, &Float:X, &Float:Y, &Float:Z);
native SetDynamicVehicleVelocity(STREAMER_TAG_VEHICLE vehicleid, Float:X, Float:Y, Float:Z);
native SetDynamicVehAngularVelocity(STREAMER_TAG_VEHICLE vehicleid, Float:X, Float:Y, Float:Z);
native GetDynamicVehicleDamageStatus(STREAMER_TAG_VEHICLE vehicleid, &panels, &doors, &lights, &tires);
native UpdateDynamicVehDamageStatus(STREAMER_TAG_VEHICLE vehicleid, panels, doors, lights, tires);
native SetDynamicVehicleVirtualWorld(STREAMER_TAG_VEHICLE vehicleid, worldid);
native GetDynamicVehicleVirtualWorld(STREAMER_TAG_VEHICLEvehicleid);
native GetPlayerSurfingDynamicVehID(playerid);
native PutPlayerInDynamicVehicle(playerid, STREAMER_TAG_VEHICLE vehicleid, seatid);
native GetPlayerDynamicVehicleID(playerid);
native IsPlayerInDynamicVehicle(playerid, STREAMER_TAG_VEHICLE vehicleid);
native IsPlayerInAnyDynamicVehicle(STREAMER_TAG_VEHICLE vehicleid);
native IsDynamicVehicleOccupied(STREAMER_TAG_VEHICLE vehicleid);
native PlayerSpectateDynamicVehicle(playerid, STREAMER_TAG_VEHICLE targetvehicleid, mode = 0);

forward OnDynamicVehicleSpawn(vehicleid);
forward OnDynamicVehicleDeath(vehicleid, killerid);
forward OnPlayerEnterDynamicVehicle(playerid, vehicleid, ispassenger);
forward OnPlayerExitDynamicVehicle(playerid, vehicleid);
forward OnDynamicVehicleMod(playerid, vehicleid, componentid);
forward OnDynamicVehiclePaintjob(playerid, vehicleid, paintjobid);
forward OnDynamicVehicleRespray(playerid, vehicleid, color1, color2);
forward OnDynamicVehDamageStatusUpdate(vehicleid, playerid);
forward OnUnoccupiedDynamicVehUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
forward OnDynamicVehicleStreamIn(vehicleid, forplayerid);
forward OnDynamicVehicleStreamOut(vehicleid, forplayerid);
forward OnDynamicTrailerUpdate(playerid, vehicleid);
forward OnDynamicVehSirenStateChange(playerid, vehicleid, newstate);
Note:
- This streamer doesn't support trains and might not in the near future.

Download:
Win & Linux: https://www.anonfiles.cc/file/c611eb...de48e8c4436c08
Source: https://github.com/kurta999/samp-streamer-plugin

Bugs:
- If you found any, please report it immendiately!
Reply


Messages In This Thread
Streamer Plugin with Vehicle Streamer - by kurta999 - 09.07.2015, 13:28
Re: Streamer Plugin with Vehicle Streamer - by JaydenJason - 09.07.2015, 14:53
Re: Streamer Plugin with Vehicle Streamer - by BroZeus - 09.07.2015, 15:03
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 09.07.2015, 15:18
Respuesta: Streamer Plugin with Vehicle Streamer - by Swedky - 09.07.2015, 19:04
Re: Streamer Plugin with Vehicle Streamer - by ExTaZZ69 - 09.07.2015, 22:31
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 09.07.2015, 22:37
Re: Streamer Plugin with Vehicle Streamer - by Pottus - 10.07.2015, 02:04
Re: Streamer Plugin with Vehicle Streamer - by Calgon - 10.07.2015, 03:29
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 11.07.2015, 15:52
Re: Streamer Plugin with Vehicle Streamer - by Pottus - 11.07.2015, 18:15
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 11.07.2015, 18:31
Re: Streamer Plugin with Vehicle Streamer - by xhunterx - 27.07.2015, 11:40
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 25.08.2015, 22:46
Re: Streamer Plugin with Vehicle Streamer - by Chaprnks - 23.10.2015, 15:15
Re: Streamer Plugin with Vehicle Streamer - by n0minal - 23.10.2015, 16:28
Re: Streamer Plugin with Vehicle Streamer - by Dice_ - 24.10.2015, 07:02
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 25.10.2015, 10:58
Re: Streamer Plugin with Vehicle Streamer - by Chaprnks - 25.10.2015, 11:04
Re: Streamer Plugin with Vehicle Streamer - by CharlieSanchez - 12.11.2015, 02:52
Re: Streamer Plugin with Vehicle Streamer - by TwinkiDaBoss - 03.12.2015, 19:23
Re: Streamer Plugin with Vehicle Streamer - by Yabal - 10.12.2015, 06:38
Re: Streamer Plugin with Vehicle Streamer - by iWhite - 10.12.2015, 11:51
Re: Streamer Plugin with Vehicle Streamer - by Romz - 10.12.2015, 12:02
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 10.12.2015, 14:46
Re: Streamer Plugin with Vehicle Streamer - by PrO.GameR - 14.01.2016, 10:00
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 14.01.2016, 11:52
Re: Streamer Plugin with Vehicle Streamer - by rt-2 - 02.02.2016, 20:33
Re: Streamer Plugin with Vehicle Streamer - by IstuntmanI - 02.02.2016, 21:46
Re: Streamer Plugin with Vehicle Streamer - by Jastak - 03.02.2016, 15:49
Re: Streamer Plugin with Vehicle Streamer - by IstuntmanI - 03.02.2016, 15:59
Re: Streamer Plugin with Vehicle Streamer - by Jastak - 03.02.2016, 16:11
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 04.02.2016, 14:34
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 04.02.2016, 18:44
Re: Streamer Plugin with Vehicle Streamer - by TwinkiDaBoss - 26.11.2016, 00:19
Re: Streamer Plugin with Vehicle Streamer - by Annihilator - 20.12.2016, 17:52
Re: Streamer Plugin with Vehicle Streamer - by Eoussama - 20.12.2016, 18:28
Re: Streamer Plugin with Vehicle Streamer - by jlalt - 23.02.2017, 14:09
Re: Streamer Plugin with Vehicle Streamer - by Chaprnks - 25.02.2017, 05:20
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 25.02.2017, 07:51
Re: Streamer Plugin with Vehicle Streamer - by Chaprnks - 25.02.2017, 08:07
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 25.02.2017, 08:41
Re: Streamer Plugin with Vehicle Streamer - by sampkinq - 25.02.2017, 10:48
Re: Streamer Plugin with Vehicle Streamer - by Pershing - 26.02.2017, 19:22
Re: Streamer Plugin with Vehicle Streamer - by Chaprnks - 04.03.2017, 13:04
Re: Streamer Plugin with Vehicle Streamer - by sampkinq - 11.03.2017, 07:26
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 16.03.2017, 10:25
Re: Streamer Plugin with Vehicle Streamer - by Rodzknot - 16.03.2017, 11:11
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 22.03.2017, 08:33
Re: Streamer Plugin with Vehicle Streamer - by Flashhiee - 03.04.2017, 10:56
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 03.04.2017, 11:11
Re: Streamer Plugin with Vehicle Streamer - by DRIFT_HUNTER - 03.04.2017, 15:00
Re: Streamer Plugin with Vehicle Streamer - by Flashhiee - 09.04.2017, 13:45
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 28.04.2017, 06:00
Re: Streamer Plugin with Vehicle Streamer - by V1Su4L - 28.04.2017, 18:31
Re: Streamer Plugin with Vehicle Streamer - by sampkinq - 13.05.2017, 16:57
Re: Streamer Plugin with Vehicle Streamer - by RakeDW - 15.05.2017, 20:27
Re: Streamer Plugin with Vehicle Streamer - by AbyssMorgan - 16.05.2017, 17:26
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 19.05.2017, 12:05
Re: Streamer Plugin with Vehicle Streamer - by AbyssMorgan - 19.05.2017, 12:51
Re: Streamer Plugin with Vehicle Streamer - by NaS - 19.05.2017, 16:59
Re: Streamer Plugin with Vehicle Streamer - by RakeDW - 21.05.2017, 14:58
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 22.05.2017, 09:41
Re: Streamer Plugin with Vehicle Streamer - by Ivor8000 - 01.06.2017, 19:44
Re: Streamer Plugin with Vehicle Streamer - by Dokins - 01.06.2017, 20:23
Re: Streamer Plugin with Vehicle Streamer - by IstuntmanI - 02.06.2017, 20:28
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 02.06.2017, 20:54
Re: Streamer Plugin with Vehicle Streamer - by DeitY - 28.06.2017, 17:56
Re: Streamer Plugin with Vehicle Streamer - by KingSenpai - 29.06.2017, 07:44
Re: Streamer Plugin with Vehicle Streamer - by Pottus - 30.06.2017, 01:31
Re: Streamer Plugin with Vehicle Streamer - by Spmn - 30.06.2017, 11:11
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 30.06.2017, 11:54
Re: Streamer Plugin with Vehicle Streamer - by DeitY - 30.06.2017, 21:46
Re: Streamer Plugin with Vehicle Streamer - by IstuntmanI - 07.07.2017, 14:12
Re: Streamer Plugin with Vehicle Streamer - by kernel32 - 09.07.2017, 01:41
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 09.07.2017, 08:25
Re: Streamer Plugin with Vehicle Streamer - by DeitY - 30.07.2017, 19:58
Re: Streamer Plugin with Vehicle Streamer - by Barnwell - 02.08.2017, 00:47
Re: Streamer Plugin with Vehicle Streamer - by d1git - 13.11.2017, 18:48
Re: Streamer Plugin with Vehicle Streamer - by liguanhua123 - 19.01.2018, 03:55
Re: Streamer Plugin with Vehicle Streamer - by pawnoholic - 01.02.2018, 15:46
Re: Streamer Plugin with Vehicle Streamer - by kurta999 - 01.02.2018, 20:24
Re: Streamer Plugin with Vehicle Streamer - by Pottus - 02.02.2018, 01:31
Re: Streamer Plugin with Vehicle Streamer - by Spoookymon - 03.02.2018, 08:14
Re: Streamer Plugin with Vehicle Streamer - by StRaffael - 17.10.2018, 14:23
Re: Streamer Plugin with Vehicle Streamer - by icorne - 19.10.2018, 06:50
Re: Streamer Plugin with Vehicle Streamer - by lipan0527 - 21.11.2018, 00:27
Re: Streamer Plugin with Vehicle Streamer - by OKStyle - 24.11.2018, 06:27
Re: Streamer Plugin with Vehicle Streamer - by d1git - 24.11.2018, 07:26

Forum Jump:


Users browsing this thread: 4 Guest(s)