02.08.2014, 06:03
(
Последний раз редактировалось Swimor; 03.08.2014 в 15:58.
)
Streamer Plugin v2.7.2 with vehicle streamer
This is beta version, also there are massive rewrite of the whole plugin that I am planning to do soon. Stay updated.
Original Incognito's streamer: https://sampforum.blast.hk/showthread.php?tid=102865
This plugin is Incognito's streamer plugin with vehicle streaming option. This plugin is updated to sampgdk 4 and not using pawn callback hooking anymore.
All the definitions / natives / enumerators / callbacks that listed in this thread are in addition to the originals (that can be found in the original thread).
If there are function releated to vehicles that not included yet, send me private message and I will include the function in the next release.
If you found bugs or you have an suggestions, post it in this thread.
Changelog
The commit history can be found here.
Definitions
Enumerator
Natives
Vehicles:
Callbacks
Objects:
3D Text Labels:
Instructions
General Notes
Native Notes
Performance Notes
Download
The latest compiled binaries will always be here:
GitHub Releases Page
The source can be browsed here. This repository can also be cloned.
The Windows version requires the Microsoft .NET Framework 4.0 or higher. If this cannot be installed on the server, place these files in the top directory (alongside samp-server.exe).
Credits
Incognito - The original streamer
kurta999 - The idea and the base of the vehicle streamer
Me - Adding the vehicle streaming
This is beta version, also there are massive rewrite of the whole plugin that I am planning to do soon. Stay updated.
Original Incognito's streamer: https://sampforum.blast.hk/showthread.php?tid=102865
This plugin is Incognito's streamer plugin with vehicle streaming option. This plugin is updated to sampgdk 4 and not using pawn callback hooking anymore.
All the definitions / natives / enumerators / callbacks that listed in this thread are in addition to the originals (that can be found in the original thread).
If there are function releated to vehicles that not included yet, send me private message and I will include the function in the next release.
If you found bugs or you have an suggestions, post it in this thread.
Changelog
The commit history can be found here.
Definitions
Код:
#define STREAMER_TYPE_VEHICLE (7) #define STREAMER_VEHICLE_TYPE_GLOBAL (0) #define STREAMER_VEHICLE_TYPE_DYNAMIC (1)
Код:
enum { E_STREAMER_ANGLE, E_STREAMER_RESPAWN_DELAY }
Vehicles:
Код:
native CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0); native DestroyDynamicVehicle(vehicleid); native IsValidDynamicVehicle(vehicleid); native IsDynamicVehicleStreamedIn(vehicleid); // New native GetDynamicVehicleModel(vehicleid); native GetDynamicVehiclePos(vehicleid, &Float:x, &Float:y, &Float:z); native SetDynamicVehiclePos(vehicleid, Float:x, Float:y, Float:z); native GetDynamicVehicleZAngle(vehicleid, &Float:angle); native SetDynamicVehicleZAngle(vehicleid, Float:angle); native GetDynamicVehicleDistanceFromPoint(vehicleid, &Float:x, &Float:y, &Float:z); native GetDynamicVehicleVelocity(vehicleid, &Float:x, &Float:y, &Float:z); // New native SetDynamicVehicleVelocity(vehicleid, Float:x, Float:y, Float:z); // New native SetDynamicVehicleAngularVelocity(vehicleid, Float:x, Float:y, Float:z); // New native GetDynamicVehicleVirtualWorld(vehicleid); // New native SetDynamicVehicleVirtualWorld(vehicleid, worldid); // New native GetDynamicVehicleInterior(vehicleid); // New native SetDynamicVehicleInterior(vehicleid, interiorid); // New native SetDynamicVehicleColor(vehicleid, color1, color2); native GetDynamicVehicleColor(vehicleid, &color1, &color2); native SetDynamicVehiclePaintjob(vehicleid, paintjobid); native GetDynamicVehiclePaintjob(vehicleid, &paintjobid); native SetDynamicVehicleNumberPlate(vehicleid, numberplate[]); native GetDynamicVehicleNumberPlate(vehicleid, numberplate[], length = sizeof numberplate); native SetDynamicVehicleToRespawn(vehicleid); native AddDynamicVehicleComponent(vehicleid, componentid); native RemoveDynamicVehicleComponent(vehicleid, componentid); native GetDynamicVehicleComponentInSlot(vehicleid, slot); native GetDynamicVehicleHealth(vehicleid, &Float:health); native SetDynamicVehicleHealth(vehicleid, Float:health); native GetDynamicVehicleDamageStatus(vehicleid, &panels, &doors, &lights, &tires); native SetDynamicVehicleDamageStatus(vehicleid, panels, doors, lights, tires); native GetPlayerDynamicVehicleID(playerid); native PutPlayerInDynamicVehicle(playerid, vehicleid, seatid);
Код:
forward OnDynamicVehicleSpawn(vehicleid); forward OnDynamicVehicleDeath(vehicleid, killerid); forward OnPlayerEnterDynamicVehicle(playerid, vehicleid, ispassenger); forward OnPlayerExitDynamicVehicle(playerid, vehicleid); forward OnDynamicVehicleMod(playerid, vehicleid, component); forward OnDynamicVehiclePaintjob(playerid, vehicleid, paintjob); forward OnDynamicVehicleRespray(playerid, vehicleid, color1, color2); forward OnDynamicVehicleDamageStatusUpdate(vehicleid, playerid);
Код:
native AttachDynamicObjectToVehicle(objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC);
Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC);
Quote:
Create a directory called "plugins" inside of the server directory if one does not already exist. Place the plugin file (streamer.dll or streamer.so) inside of this directory. Add the following line to server.cfg so that the plugin will load the next time the server starts: Windows: Код:
plugins streamer.dll Код:
plugins streamer.so pawn Код:
|
Quote:
|
Quote:
|
Quote:
|
The latest compiled binaries will always be here:
GitHub Releases Page
The source can be browsed here. This repository can also be cloned.
The Windows version requires the Microsoft .NET Framework 4.0 or higher. If this cannot be installed on the server, place these files in the top directory (alongside samp-server.exe).
Credits
Incognito - The original streamer
kurta999 - The idea and the base of the vehicle streamer
Me - Adding the vehicle streaming