05.06.2016, 20:02
Update StreamerFunction.inc to v2.3C now.
Streamer Version: 2.8.2
Completing additional function to all elements of the streamer:
Streamer Version: 2.8.2
Completing additional function to all elements of the streamer:
PHP код:
Objects Functions:
GetDynamicObjectModel(objectid);
SetDynamicObjectModel(objectid,modelid);
GetDynamicObjectVW(objectid);
SetDynamicObjectVW(objectid,worldid);
GetDynamicObjectINT(objectid);
SetDynamicObjectINT(objectid,interiorid);
GetDynamicObjectSD(objectid,&Float:streamdistance);
SetDynamicObjectSD(objectid,Float:streamdistance);
GetDynamicObjectDD(objectid,&Float:drawdistance);
SetDynamicObjectDD(objectid,Float:drawdistance);
GetDynamicObjectPosAndRot(objectid,&Float:x,&Float:y,&Float:z,&Float:rx,&Float:ry,&Float:rz);
SetDynamicObjectPosAndRot(objectid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
GetDynamicObjectMoveSpeed(objectid,&Float:speed);
SetDynamicObjectMoveSpeed(objectid,Float:speed);
GetDynamicObjectMovePos(objectid,&Float:x,&Float:y,&Float:z);
SetDynamicObjectMovePos(objectid,Float:x,Float:y,Float:z);
GetDynamicObjectMoveRot(objectid,&Float:rx,&Float:ry,&Float:rz);
SetDynamicObjectMoveRot(objectid,Float:rx = -1000.0,Float:ry = -1000.0,Float:rz = -1000.0);
GetDynamicObjectMoveTime(objectid,&objstate,&rtime);
SetDynamicObjectAttachSync(objectid,syncrotation);
ResetDynamicObjectMaterial(objectid,materialindex);
ResetDynamicObjectMaterialAll(objectid);
DeattachObjectDynamicObject(objectid);
DeattachDynamicObjectComponent(objectid,type);
DestroyDynamicObjectComponent(objectid,type);
RebuildDynamicObject(objectid,...);
GetDynamicObjectArea(objectid);
SetDynamicObjectArea(objectid,areaid);
GetDynamicObjectPriority(objectid);
SetDynamicObjectPriority(objectid,priority);
SAMP Functions:
GetObjectPosAndRot(objectid,&Float:x,&Float:y,&Float:z,&Float:rx,&Float:ry,&Float:rz);
SetObjectPosAndRot(objectid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
CountObjects();
CountVehicles();
CountPlayerObjects(playerid,bool:streamer = false);
DestroyObjects();
DestroyVehicles();
DestroyPlayerObjects(playerid,bool:streamer = false);
GangZoneDestroyAll();
Cube Functions:
DestroyDynamicObjectsInCube(Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,worldid = -1,interiorid = -1);
DestroyDynamicObjectsInCubeFM(modelid,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,worldid = -1,interiorid = -1);
IsPointInArea(Float:x,Float:y,Float:z,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz);
IsPointInAreaEx(Float:x,Float:y,Float:z,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,vw1,int1,vw2,int2);
Vehicle Functions:
DestroyVehicleDynamicObject(vehicleid);
DeattachVehicleDynamicObject(vehicleid);
Check Point Functions:
GetDynamicCPPos(checkpointid,&Float:x,&Float:y,&Float:z);
SetDynamicCPPos(checkpointid,Float:x,Float:y,Float:z);
GetDynamicCPSize(checkpointid,&Float:size);
SetDynamicCPSize(checkpointid,Float:size);
GetDynamicCPVW(checkpointid);
SetDynamicCPVW(checkpointid,worldid);
GetDynamicCPINT(checkpointid);
SetDynamicCPINT(checkpointid,interiorid);
GetDynamicCPSD(checkpointid,&Float:streamdistance);
SetDynamicCPSD(checkpointid,Float:streamdistance);
GetDynamicCPArea(checkpointid);
SetDynamicCPArea(checkpointid,areaid);
GetDynamicCPPriority(checkpointid);
SetDynamicCPPriority(checkpointid,priority);
Race Check Point Functions:
GetDynamicRaceCPPos(checkpointid,&Float:x,&Float:y,&Float:z);
SetDynamicRaceCPPos(checkpointid,Float:x,Float:y,Float:z);
GetDynamicRaceCPNext(checkpointid,&Float:nextx,&Float:nexty,&Float:nextz);
SetDynamicRaceCPNext(checkpointid,Float:nextx,Float:nexty,Float:nextz);
GetDynamicRaceCPType(checkpointid);
SetDynamicRaceCPType(checkpointid,type);
GetDynamicRaceCPSize(checkpointid,&Float:size);
SetDynamicRaceCPSize(checkpointid,Float:size);
GetDynamicRaceCPVW(checkpointid);
SetDynamicRaceCPVW(checkpointid,worldid);
GetDynamicRaceCPINT(checkpointid);
SetDynamicRaceCPINT(checkpointid,interiorid);
GetDynamicRaceCPSD(checkpointid,&Float:streamdistance);
SetDynamicRaceCPSD(checkpointid,Float:streamdistance);
GetDynamicRaceCPArea(checkpointid);
SetDynamicRaceCPArea(checkpointid,areaid);
GetDynamicRaceCPPriority(checkpointid);
SetDynamicRaceCPPriority(checkpointid,priority);
Player Functions:
DestroyPlayerDynamicObject(playerid);
DeattachPlayerDynamicObject(playerid);
MapIcon Functions:
GetDynamicMapIconPos(iconid,&Float:x,&Float:y,&Float:z);
SetDynamicMapIconPos(iconid,Float:x,Float:y,Float:z);
GetDynamicMapIconType(iconid);
SetDynamicMapIconType(iconid,type);
GetDynamicMapIconStyle(iconid);
SetDynamicMapIconStyle(iconid,style);
GetDynamicMapIconVW(iconid);
SetDynamicMapIconVW(iconid,worldid);
GetDynamicMapIconINT(iconid);
SetDynamicMapIconINT(iconid,interiorid);
GetDynamicMapIconSD(iconid,&Float:streamdistance);
SetDynamicMapIconSD(iconid,Float:streamdistance);
SetDynamicMapIconColor(iconid,color);
GetDynamicMapIconColor(iconid);
GetDynamicMapIconArea(iconid);
SetDynamicMapIconArea(iconid,areaid);
GetDynamicMapIconPriority(iconid);
SetDynamicMapIconPriority(iconid,priority);
Pickup Functions:
GetDynamicPickupPos(pickupid,&Float:x,&Float:y,&Float:z);
SetDynamicPickupPos(pickupid,Float:x,Float:y,Float:z);
GetDynamicPickupModel(pickupid);
SetDynamicPickupModel(pickupid,modelid);
GetDynamicPickupVW(pickupid);
SetDynamicPickupVW(pickupid,worldid);
GetDynamicPickupINT(pickupid);
SetDynamicPickupINT(pickupid,interiorid);
GetDynamicPickupSD(pickupid,&Float:streamdistance);
SetDynamicPickupSD(pickupid,Float:streamdistance);
GetDynamicPickupType(pickupid);
SetDynamicPickupType(pickupid,type);
GetDynamicPickupArea(pickupid);
SetDynamicPickupArea(pickupid,areaid);
GetDynamicPickupPriority(pickupid);
SetDynamicPickupPriority(pickupid,priority);
3DText Functions:
GetDynamic3DTextPos(Text3D:id,&Float:x,&Float:y,&Float:z);
SetDynamic3DTextPos(Text3D:id,Float:x,Float:y,Float:z);
GetDynamic3DTextDD(Text3D:id,Float:drawdistance);
SetDynamic3DTextDD(Text3D:id,Float:drawdistance);
GetDynamic3DTextSD(Text3D:id,&Float:streamdistance);
SetDynamic3DTextSD(Text3D:id,Float:streamdistance);
GetDynamic3DTextVW(Text3D:id);
SetDynamic3DTextVW(Text3D:id,worldid);
GetDynamic3DTextINT(Text3D:id);
SetDynamic3DTextINT(Text3D:id,interiorid);
GetDynamic3DTextColor(Text3D:id);
SetDynamic3DTextColor(Text3D:id,color);
GetDynamic3DTextArea(Text3D:id);
SetDynamic3DTextArea(Text3D:id,areaid);
GetDynamic3DTextPriority(Text3D:id);
SetDynamic3DTextPriority(Text3D:id,priority);
SetDynamic3DTextTestLos(Text3D:id,testlos);
SetDynamic3DTextAttachPlayer(Text3D:id,attachedplayer);
SetDynamic3DTextAttachVehicle(Text3D:id,attachedvehicle);
Area Functions:
GetDynamicCirclePos(areaid,&Float:x,&Float:y);
SetDynamicCirclePos(areaid,Float:x,Float:y);
GetDynamicCylinderPos(areaid,&Float:x,&Float:y,&Float:minz,&Float:maxz);
SetDynamicCylinderPos(areaid,Float:x,Float:y,Float:minz,Float:maxz);
GetDynamicSpherePos(areaid,&Float:x,&Float:y,&Float:z);
SetDynamicSpherePos(areaid,Float:x,Float:y,Float:z);
GetDynamicRectanglePos(areaid,&Float:minx,&Float:miny,&Float:maxx,&Float:maxy);
SetDynamicRectanglePos(areaid,Float:minx,Float:miny,Float:maxx,Float:maxy);
GetDynamicCubePos(areaid,&Float:minx,&Float:miny,&Float:minz,&Float:maxx,&Float:maxy,&Float:maxz);
SetDynamicCubePos(areaid,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz);
GetDynamicCuboidPos(areaid,&Float:minx,&Float:miny,&Float:minz,&Float:maxx,&Float:maxy,&Float:maxz);
SetDynamicCuboidPos(areaid,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz);
GetDynamicAreaVW(areaid);
SetDynamicAreaVW(areaid,worldid);
GetDynamicAreaINT(areaid);
SetDynamicAreaINT(areaid,interiorid);
GetDynamicAreaSize(areaid,Float:size);
SetDynamicAreaSize(areaid,Float:size);
Anti Area Functions:
IsPointInAntiArea(areaid,Float:x,Float:y,Float:z);
IsPlayerInAntiArea(playerid,areaid,recheck = 0);
IsPlayerInAnyAntiArea(playerid,recheck = 0);
IsAnyPlayerInAntiArea(areaid,recheck = 0);
IsAnyPlayerInAnyAntiArea(recheck = 0);
Anti Area Callbacks:
OnPlayerEnterAntiArea(playerid,areaid);
OnPlayerLeaveAntiArea(playerid,areaid);
Pool Size Functions:
GetDynamicObjectPoolSize();
GetDynamicPickupPoolSize();
GetDynamicCPPoolSize();
GetDynamicRaceCPPoolSize();
GetDynamicMapIconPoolSize();
GetDynamic3DTextPoolSize();
GetDynamicAreaPoolSize();
Update Functions:
UpdateAllDynamicElements();
UpdateAllDynamicObjects();
UpdateAllDynamicPickups();
UpdateAllDynamicCPs();
UpdateAllDynamicRaceCPs();
UpdateAllDynamicMapIcons();
UpdateAllDynamic3DTextLabels();
UpdateAllDynamicAreas();
Foreach Functions:
ForDynamicObjects(variable);
ForDynamicPickups(variable);
ForDynamicCPs(variable);
ForDynamicRaceCPs(variable);
ForDynamicMapIcons(variable);
ForDynamic3DTextLabels(variable);
ForDynamicAreas(variable);
Extended Functions:
bool:IsValidStreamer(version);
GetStreamerVersion();
GetValidStreamerVersion();
GetStreamerVersionName(name[], value = GET_STREAMER_VERSION, maxdest = sizeof name);