[PLUGIN] Streamer Plugin v2.5.2
Settings:
pawn Code:
native Streamer_TickRate (rate);
native Streamer_MaxItems (type, items);
native Streamer_VisibleItems (type, items);
native Streamer_CellDistance (Float: distance);
native Streamer_CellSize (Float: size);
Updates:
pawn Code:
native Streamer_Update (playerid);
native Streamer_UpdateEx (playerid, Float: x, Float: y, Float: z);
Data Manipulation:
pawn Code:
native Streamer_GetFloatData (type, {Text3D, _}: id, data, &Float: result);
native Streamer_SetFloatData (type, {Text3D, _}: id, data, Float: value);
native Streamer_GetIntData (type, {Text3D, _}: id, data);
native Streamer_SetIntData (type, {Text3D, _}: id, data, value);
native Streamer_IsInArrayData (type, {Text3D, _}: id, data, value);
native Streamer_AppendArrayData (type, {Text3D, _}: id, data, value);
native Streamer_RemoveArrayData (type, {Text3D, _}: id, data, value);
native Streamer_GetUpperBound (type);
Miscellaneous:
pawn Code:
native Streamer_IsItemVisible (playerid, type, {Text3D, _}: id);
native Streamer_DestroyAllVisibleItems (playerid, type);
native Streamer_CountVisibleItems (playerid, type);
Objects:
pawn Code:
native CreateDynamicObject (modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 200.0);
native DestroyDynamicObject (objectid);
native IsValidDynamicObject (objectid);
native SetDynamicObjectPos (objectid, Float: x, Float: y, Float: z);
native GetDynamicObjectPos (objectid, &Float: x, &Float: y, &Float: z);
native SetDynamicObjectRot (objectid, Float: rx, Float: ry, Float: rz);
native GetDynamicObjectRot (objectid, &Float: rx, &Float: ry, &Float: rz);
native MoveDynamicObject (objectid, Float: x, Float: y, Float: z, Float: speed);
native StopDynamicObject (objectid);
native DestroyAllDynamicObjects ();
native CountDynamicObjects ();
Pickups:
pawn Code:
native CreateDynamicPickup (modelid, type, Float: x, Float: y, Float: z, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicPickup (pickupid);
native IsValidDynamicPickup (pickupid);
native DestroyAllDynamicPickups ();
native CountDynamicPickups ();
Checkpoints:
Race Checkpoints:
pawn Code:
native CreateDynamicRaceCP (type, Float: x, Float: y, Float: z, Float: nextx, Float: nexty, Float: nextz, Float: size, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicRaceCP (checkpointid);
native IsValidDynamicRaceCP (checkpointid);
native TogglePlayerDynamicRaceCP (playerid, checkpointid, toggle);
native TogglePlayerAllDynamicRaceCPs (playerid, toggle);
native IsPlayerInDynamicRaceCP (playerid, checkpointid);
native DestroyAllDynamicRaceCPs ();
native CountDynamicRaceCPs ();
Map Icons:
pawn Code:
native CreateDynamicMapIcon (Float: x, Float: y, Float: z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicMapIcon (iconid);
native IsValidDynamicMapIcon (iconid);
native DestroyAllDynamicMapIcons ();
native CountDynamicMapIcons ();
3D Text Labels:
pawn Code:
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: distance = 100.0);
native DestroyDynamic3DTextLabel (Text3D: id);
native IsValidDynamic3DTextLabel (Text3D: id);
native UpdateDynamic3DTextLabelText (Text3D: id, color, const text[]);
native DestroyAllDynamic3DTextLabels ();
native CountDynamic3DTextLabels ();
Areas:
pawn Code:
native CreateDynamicCircle (Float: x, Float: y, Float: size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle (Float: minx, Float: miny, Float: maxx, Float: maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere (Float: x, Float: y, Float: z, Float: size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube (Float: minx, Float: miny, Float: minz, Float: maxx, Float: maxy, Float: maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea (areaid);
native IsValidDynamicArea (areaid);
native TogglePlayerDynamicArea (playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas (playerid, toggle);
native IsPlayerInDynamicArea (playerid, areaid);
native AttachDynamicAreaToPlayer (areaid, playerid);
native AttachDynamicAreaToVehicle (areaid, vehicleid);
native DestroyAllDynamicAreas ();
native CountDynamicAreas ();
Callbacks
pawn Code:
forward OnDynamicObjectMoved (objectid);
forward OnPlayerPickUpDynamicPickup (playerid, pickupid);
forward OnPlayerEnterDynamicCP (playerid, checkpointid);
forward OnPlayerLeaveDynamicCP (playerid, checkpointid);
forward OnPlayerEnterDynamicRaceCP (playerid, checkpointid);
forward OnPlayerLeaveDynamicRaceCP (playerid, checkpointid);
forward OnPlayerEnterDynamicArea (playerid, areaid);
forward OnPlayerLeaveDynamicArea (playerid, areaid);
Definitions
pawn Code:
#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)
Enumerator
pawn Code:
enum
{
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_COLOR,
E_STREAMER_DISTANCE,
E_STREAMER_DRAW_DISTANCE,
E_STREAMER_EXTRA_ID,
E_STREAMER_INTERIOR_ID,
E_STREAMER_MAX_X,
E_STREAMER_MAX_Y,
E_STREAMER_MAX_Z,
E_STREAMER_MIN_X,
E_STREAMER_MIN_Y,
E_STREAMER_MIN_Z,
E_STREAMER_MODEL_ID,
E_STREAMER_MOVE_SPEED,
E_STREAMER_MOVE_X,
E_STREAMER_MOVE_Y,
E_STREAMER_MOVE_Z,
E_STREAMER_NEXT_X,
E_STREAMER_NEXT_Y,
E_STREAMER_NEXT_Z,
E_STREAMER_PLAYER_ID,
E_STREAMER_R_X,
E_STREAMER_R_Y,
E_STREAMER_R_Z,
E_STREAMER_SIZE,
E_STREAMER_STYLE,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z
}
pawn Code:
native Streamer_TickRate (rate);
native Streamer_MaxItems (type, items);
native Streamer_VisibleItems (type, items);
native Streamer_CellDistance (Float: distance);
native Streamer_CellSize (Float: size);
Updates:
pawn Code:
native Streamer_Update (playerid);
native Streamer_UpdateEx (playerid, Float: x, Float: y, Float: z);
Data Manipulation:
pawn Code:
native Streamer_GetFloatData (type, {Text3D, _}: id, data, &Float: result);
native Streamer_SetFloatData (type, {Text3D, _}: id, data, Float: value);
native Streamer_GetIntData (type, {Text3D, _}: id, data);
native Streamer_SetIntData (type, {Text3D, _}: id, data, value);
native Streamer_IsInArrayData (type, {Text3D, _}: id, data, value);
native Streamer_AppendArrayData (type, {Text3D, _}: id, data, value);
native Streamer_RemoveArrayData (type, {Text3D, _}: id, data, value);
native Streamer_GetUpperBound (type);
Miscellaneous:
pawn Code:
native Streamer_IsItemVisible (playerid, type, {Text3D, _}: id);
native Streamer_DestroyAllVisibleItems (playerid, type);
native Streamer_CountVisibleItems (playerid, type);
Objects:
pawn Code:
native CreateDynamicObject (modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 200.0);
native DestroyDynamicObject (objectid);
native IsValidDynamicObject (objectid);
native SetDynamicObjectPos (objectid, Float: x, Float: y, Float: z);
native GetDynamicObjectPos (objectid, &Float: x, &Float: y, &Float: z);
native SetDynamicObjectRot (objectid, Float: rx, Float: ry, Float: rz);
native GetDynamicObjectRot (objectid, &Float: rx, &Float: ry, &Float: rz);
native MoveDynamicObject (objectid, Float: x, Float: y, Float: z, Float: speed);
native StopDynamicObject (objectid);
native DestroyAllDynamicObjects ();
native CountDynamicObjects ();
Pickups:
pawn Code:
native CreateDynamicPickup (modelid, type, Float: x, Float: y, Float: z, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicPickup (pickupid);
native IsValidDynamicPickup (pickupid);
native DestroyAllDynamicPickups ();
native CountDynamicPickups ();
Checkpoints:
Race Checkpoints:
pawn Code:
native CreateDynamicRaceCP (type, Float: x, Float: y, Float: z, Float: nextx, Float: nexty, Float: nextz, Float: size, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicRaceCP (checkpointid);
native IsValidDynamicRaceCP (checkpointid);
native TogglePlayerDynamicRaceCP (playerid, checkpointid, toggle);
native TogglePlayerAllDynamicRaceCPs (playerid, toggle);
native IsPlayerInDynamicRaceCP (playerid, checkpointid);
native DestroyAllDynamicRaceCPs ();
native CountDynamicRaceCPs ();
Map Icons:
pawn Code:
native CreateDynamicMapIcon (Float: x, Float: y, Float: z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float: distance = 100.0);
native DestroyDynamicMapIcon (iconid);
native IsValidDynamicMapIcon (iconid);
native DestroyAllDynamicMapIcons ();
native CountDynamicMapIcons ();
3D Text Labels:
pawn Code:
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: distance = 100.0);
native DestroyDynamic3DTextLabel (Text3D: id);
native IsValidDynamic3DTextLabel (Text3D: id);
native UpdateDynamic3DTextLabelText (Text3D: id, color, const text[]);
native DestroyAllDynamic3DTextLabels ();
native CountDynamic3DTextLabels ();
Areas:
pawn Code:
native CreateDynamicCircle (Float: x, Float: y, Float: size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle (Float: minx, Float: miny, Float: maxx, Float: maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere (Float: x, Float: y, Float: z, Float: size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube (Float: minx, Float: miny, Float: minz, Float: maxx, Float: maxy, Float: maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea (areaid);
native IsValidDynamicArea (areaid);
native TogglePlayerDynamicArea (playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas (playerid, toggle);
native IsPlayerInDynamicArea (playerid, areaid);
native AttachDynamicAreaToPlayer (areaid, playerid);
native AttachDynamicAreaToVehicle (areaid, vehicleid);
native DestroyAllDynamicAreas ();
native CountDynamicAreas ();
Callbacks
pawn Code:
forward OnDynamicObjectMoved (objectid);
forward OnPlayerPickUpDynamicPickup (playerid, pickupid);
forward OnPlayerEnterDynamicCP (playerid, checkpointid);
forward OnPlayerLeaveDynamicCP (playerid, checkpointid);
forward OnPlayerEnterDynamicRaceCP (playerid, checkpointid);
forward OnPlayerLeaveDynamicRaceCP (playerid, checkpointid);
forward OnPlayerEnterDynamicArea (playerid, areaid);
forward OnPlayerLeaveDynamicArea (playerid, areaid);
Definitions
pawn Code:
#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)
Enumerator
pawn Code:
enum
{
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_COLOR,
E_STREAMER_DISTANCE,
E_STREAMER_DRAW_DISTANCE,
E_STREAMER_EXTRA_ID,
E_STREAMER_INTERIOR_ID,
E_STREAMER_MAX_X,
E_STREAMER_MAX_Y,
E_STREAMER_MAX_Z,
E_STREAMER_MIN_X,
E_STREAMER_MIN_Y,
E_STREAMER_MIN_Z,
E_STREAMER_MODEL_ID,
E_STREAMER_MOVE_SPEED,
E_STREAMER_MOVE_X,
E_STREAMER_MOVE_Y,
E_STREAMER_MOVE_Z,
E_STREAMER_NEXT_X,
E_STREAMER_NEXT_Y,
E_STREAMER_NEXT_Z,
E_STREAMER_PLAYER_ID,
E_STREAMER_R_X,
E_STREAMER_R_Y,
E_STREAMER_R_Z,
E_STREAMER_SIZE,
E_STREAMER_STYLE,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z
}