Great job ! I hope it will be merged with the original streamer plugin, if everything is ok. Thanks for your work !
I have a have few suggestions:
pawn Код:
native GetDynamicVehicleZAngle(vehicleid, &Float:x, &Float:y, &Float:z);
native SetDynamicVehicleZAngle(vehicleid, Float:x, Float:y, Float:z);
native GetDynamicVehicleZAngle(vehicleid, &Float:angle);
native SetDynamicVehicleZAngle(vehicleid, Float:angle);
should be
pawn Код:
native GetDynamicVehiclePos(vehicleid, &Float:w, &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);
-- I think that I make mistake with the native names, I will check it soon. Also I will add GetVehicleRotationQuat and I will try to add SetVehicleRotationQuat.
Also, you forgot one thing, you should add it in the plugin:
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
pawn Код:
forward OnPlayerShotDynamicVehicle(playerid, vehicleid, weaponid, Float:fX, Float:fY, Float:fZ);
-- Will be added in the next version.
And these (are even possible some of them ?):
pawn Код:
native SetDynamicVehicleAngularVelocity(vehicleid, Float:X, Float:Y, Float:Z);
native AttachTrailerToVehicle(trailerid, vehicleid, trailertype = STREAMER_VEHICLE_TYPE_DYNAMIC, vehicletype = STREAMER_VEHICLE_TYPE_DYNAMIC ); // add another enum like the one in which is STREAMER_OBJECT_TYPE_DYNAMIC
native DetachTrailerFromVehicle(vehicleid);
native IsTrailerAttachedToVehicle(vehicleid);
native GetVehicleTrailer(vehicleid);
native GetDynamicVehicleRotationQuat(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z);
-- Yes, it will be done.
Also, I know that these are perfectly scriptable, but they are needed as default:
pawn Код:
native SetDynamicVehicleVirtualWorld(vehicleid, worldid);
native GetDynamicVehicleVirtualWorld(vehicleid);
native SetDynamicVehicleInterior(vehicleid, interiorid);
native GetDynamicVehicleInterior(vehicleid);
native GetDynamicVehicleFirstColor(vehicleid); // returns color1
native GetDynamicVehicleSecondColor(vehicleid); // returns color2
native IsDynamicVehicleStreamedIn(vehicleid); // returns 1 if it is streamed for a player
-- you right I forgot those natives, I will add them too.
I hope that the next SA:MP version will bring us a SetVehicleRotationQuat, because I think you can't make it.