-
Notifications
You must be signed in to change notification settings - Fork 7
/
StreamerFunction.inc
1608 lines (1435 loc) · 68.3 KB
/
StreamerFunction.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
StreamerFunction.inc
Copyright © 2022 Abyss Morgan. All rights reserved.
Contributors: Katarina Calzaghe
Website: https://adm.ct8.pl
Plugins: Streamer
Modules: None
File Version: 3.0.1
Streamer Version: 2.9.5
Compiler Options:
DISABLE_STREAMER_SPEC_CHECK //Turn off check streamer version
ENABLE_BULLET_DYNAMIC_OBJECT //Turn on call OnPlayerWeaponShot when we shoot in a dynamic object
DISABLE_STREAMER_SPEC_FIXES //Turn off fixes (not recommended)
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);
GetDynamicObjectMoveRot(objectid,&Float:rx,&Float:ry,&Float:rz);
GetDynamicObjectMoveTime(objectid,&objstate,&rtime=0);
SetDynamicObjectAttachSync(objectid,syncrotation);
RemoveDynamicObjectMaterialAll(objectid);
DeattachObjectDynamicObject(objectid);
DeattachDynamicObjectComponent(objectid,type);
DestroyDynamicObjectComponent(objectid,type);
GetDynamicObjectArea(objectid);
SetDynamicObjectArea(objectid,areaid);
GetDynamicObjectPriority(objectid);
SetDynamicObjectPriority(objectid,priority);
GetDynamicObjectDatagram(objectid,data[]);
SetDynamicObjectDatagram(objectid,data[]);
RemoveDynamicObjectDatagram(objectid);
bool:IsSetDynamicObjectDatagram(objectid);
GetDynamicObjectInvertArea(objectid);
SetDynamicObjectInvertArea(objectid,toggle);
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();
CountPlayerObjects(playerid,bool:streamer = false);
DestroyObjects();
DestroyPlayerObjects(playerid,bool:streamer = false);
GangZoneDestroyAll();
Vehicle Functions:
CountVehicles();
DestroyVehicles();
DestroyVehicleDynamicObject(vehicleid);
DeattachVehicleDynamicObject(vehicleid);
GetVehicleDatagram(vehicleid,data[]);
SetVehicleDatagram(vehicleid,data[]);
RemoveVehicleDatagram(vehicleid);
IsSetVehicleDatagram(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);
GetDynamicCPDatagram(checkpointid,data[]);
SetDynamicCPDatagram(checkpointid,data[]);
RemoveDynamicCPDatagram(checkpointid);
bool:IsSetDynamicCPDatagram(checkpointid);
GetDynamicCPInvertArea(checkpointid);
SetDynamicCPInvertArea(checkpointid,toggle);
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);
GetDynamicRaceCPDatagram(checkpointid,data[]);
SetDynamicRaceCPDatagram(checkpointid,data[]);
RemoveDynamicRaceCPDatagram(checkpointid);
bool:IsSetDynamicRaceCPDatagram(checkpointid);
GetDynamicRaceCPInvertArea(checkpointid);
SetDynamicRaceCPInvertArea(checkpointid,toggle);
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);
GetDynamicMapIconDatagram(iconid,data[]);
SetDynamicMapIconDatagram(iconid,data[]);
RemoveDynamicMapIconDatagram(iconid);
bool:IsSetDynamicMapIconDatagram(iconid);
GetDynamicMapIconInvertArea(iconid);
SetDynamicMapIconInvertArea(iconid,toggle);
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);
GetDynamicPickupDatagram(pickupid,data[]);
SetDynamicPickupDatagram(pickupid,data[]);
RemoveDynamicPickupDatagram(pickupid);
bool:IsSetDynamicPickupDatagram(pickupid);
GetDynamicPickupInvertArea(pickupid);
SetDynamicPickupInvertArea(pickupid,toggle);
3DText Functions:
GetDynamic3DTextPos(id,&Float:x,&Float:y,&Float:z);
SetDynamic3DTextPos(id,Float:x,Float:y,Float:z);
GetDynamic3DTextDD(id,Float:drawdistance);
SetDynamic3DTextDD(id,Float:drawdistance);
GetDynamic3DTextSD(id,&Float:streamdistance);
SetDynamic3DTextSD(id,Float:streamdistance);
GetDynamic3DTextVW(id);
SetDynamic3DTextVW(id,worldid);
GetDynamic3DTextINT(id);
SetDynamic3DTextINT(id,interiorid);
GetDynamic3DTextColor(id);
SetDynamic3DTextColor(id,color);
GetDynamic3DTextArea(id);
SetDynamic3DTextArea(id,areaid);
GetDynamic3DTextPriority(id);
SetDynamic3DTextPriority(id,priority);
SetDynamic3DTextTestLos(id,testlos);
AttachDynamic3DTextToPlayer(id,attachedplayer);
AttachDynamic3DTextToVehicle(id,attachedvehicle);
GetDynamic3DTextDatagram(id,data[]);
SetDynamic3DTextDatagram(id,data[]);
RemoveDynamic3DTextDatagram(id);
bool:IsSetDynamic3DTextDatagram(id);
GetDynamic3DTextInvertArea(id);
SetDynamic3DTextInvertArea(id,toggle);
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);
GetDynamicAreaDatagram(areaid,data[]);
SetDynamicAreaDatagram(areaid,data[]);
RemoveDynamicAreaDatagram(areaid);
bool:IsSetDynamicAreaDatagram(areaid);
Actor Functions:
GetDynamicActorModel(actorid);
SetDynamicActorModel(actorid,modelid);
GetDynamicActorArea(actorid);
SetDynamicActorArea(actorid,areaid);
GetDynamicActorPriority(actorid);
SetDynamicActorPriority(actorid,priority);
GetDynamicActorSD(actorid,&Float:streamdistance);
SetDynamicActorSD(actorid,Float:streamdistance);
GetDynamicActorDatagram(actorid,data[]);
SetDynamicActorDatagram(actorid,data[]);
RemoveDynamicActorDatagram(actorid);
IsSetDynamicActorDatagram(actorid);
GetDynamicActorInterior(actorid);
SetDynamicActorInterior(actorid,interiorid);
DestroyAllDynamicActors();
CountDynamicActors();
GetDynamicActorInvertArea(actorid);
SetDynamicActorInvertArea(actorid,toggle);
Dynamic Vehicle Functions:
SetDynamicVehicleModel(vehicleid,modelid);
GetDynamicVehicleSiren(vehicleid);
SetDynamicVehicleSiren(vehicleid,siren);
GetDynamicVehicleRespawnTime(vehicleid);
SetDynamicVehicleRespawnTime(vehicleid,respawndelay);
GetDynamicVehicleArea(vehicleid);
SetDynamicVehicleArea(vehicleid,areaid);
GetDynamicVehiclePriority(vehicleid);
SetDynamicVehiclePriority(vehicleid,priority);
GetDynamicVehicleSD(vehicleid,&Float:streamdistance);
SetDynamicVehicleSD(vehicleid,Float:streamdistance);
GetDynamicVehicleInvertArea(vehicleid);
SetDynamicVehicleInvertArea(vehicleid,toggle);
GetDynamicVehicleDatagram(vehicleid,data[]);
SetDynamicVehicleDatagram(vehicleid,data[]);
RemoveDynamicVehicleDatagram(vehicleid);
IsSetDynamicVehicleDatagram(vehicleid);
DestroyAllDynamicVehicles();
CountDynamicVehicles();
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();
GetDynamicActorPoolSize();
GetDynamicVehiclePoolSize();
Update Functions:
UpdateAllDynamicItem(type);
UpdateAllDynamicElements();
UpdateAllDynamicObjects();
UpdateAllDynamicPickups();
UpdateAllDynamicCPs();
UpdateAllDynamicRaceCPs();
UpdateAllDynamicMapIcons();
UpdateAllDynamic3DTextLabels();
UpdateAllDynamicAreas();
UpdateAllDynamicActors();
UpdateAllDynamicVehicles();
Foreach Functions:
ForDynamicObjects(variable);
ForDynamicPickups(variable);
ForDynamicCPs(variable);
ForDynamicRaceCPs(variable);
ForDynamicMapIcons(variable);
ForDynamic3DTextLabels(variable);
ForDynamicAreas(variable);
ForDynamicActors(variable);
ForDynamicVehicles(variable);
Nearest Item Functions:
GetNearestVisibleItem(playerid,type);
GetNearestVisibleObject(playerid);
GetNearestVisiblePickup(playerid);
GetNearestVisibleCP(playerid);
GetNearestVisibleRaceCP(playerid);
GetNearestVisibleMapIcon(playerid);
GetNearestVisible3DText(playerid);
GetNearestVisibleArea(playerid);
GetNearestVisibleActor(playerid);
GetNearestVisibleVehicle(playerid);
Extended Functions:
bool:IsValidStreamer(version);
GetStreamerVersion();
GetValidStreamerVersion();
GetStreamerVersionName(name[], value = GET_STREAMER_VERSION, maxdest = sizeof name);
CheckStreamerVersion();
GetStreamerDatagram(type,itemid,data[]);
SetStreamerDatagram(type,itemid,data[]);
RemoveStreamDatagram(type,itemid);
bool:IsSetStreamerDatagram(type,itemid);
GetStreamerSpecActiveCount();
Definitions:
DEFAULT_VISIBLE_OBJECT
DEFAULT_VISIBLE_PICKUP
DEFAULT_VISIBLE_MAP_ICON
DEFAULT_VISIBLE_3D_TEXT
DEFAULT_VISIBLE_ACTOR
INVALID_DYNAMIC_OBJECT_ID
INVALID_DYNAMIC_PICKUP_ID
INVALID_DYNAMIC_CP_ID
INVALID_DYNAMIC_RACE_CP_ID
INVALID_DYNAMIC_MAP_ICON_ID
INVALID_DYNAMIC_3D_TEXT_ID
INVALID_DYNAMIC_AREA_ID
INVALID_DYNAMIC_ACTOR_ID
INVALID_DYNAMIC_VEHICLE_ID
INVALID_PICKUP_ID
INVALID_STREAMER_COMPONENT
MAX_STREAM_SIZE
Fixes:
DestroyDynamicObject -> Resets the variable after the destruction of the DynamicObject.
DestroyDynamicPickup -> Resets the variable after the destruction of the DynamicPickup.
DestroyDynamicCP -> Resets the variable after the destruction of the DynamicCP.
DestroyDynamicRaceCP -> Resets the variable after the destruction of the DynamicRaceCP.
DestroyDynamicMapIcon -> Resets the variable after the destruction of the DynamicMapIcon.
DestroyDynamic3DTextLabel -> Resets the variable after the destruction of the Dynamic3DTextLabel.
DestroyDynamicArea -> Resets the variable after the destruction of the DynamicArea.
DestroyDynamicActor -> Resets the variable after the destruction of the DynamicActor.
DestroyDynamicVehicle -> Resets the variable after the destruction of the DynamicVehicle.
DestroyObject -> Resets the variable after the destruction of the Object.
DestroyPlayerObject -> Resets the variable after the destruction of the PlayerObject.
DestroyPickup -> Resets the variable after the destruction of the Pickup.
Delete3DTextLabel -> Resets the variable after the destruction of the 3DTextLabel.
DeletePlayer3DTextLabel -> Resets the variable after the destruction of the Player3DTextLabel.
AttachDynamicObjectToObject -> Changes the priority of the parent to be greater than the priority of sub-objects.
*/
#if defined _samp_included
#if (!defined GetPlayerPoolSize || !defined GetSVarInt)
#error [ADM] This include requires SA:MP version 0.3.7
#endif
#else
#error [ADM] This include requires SA:MP Include
#endif
#if ((!defined Streamer_GetItemPos) || (!defined INVALID_STREAMER_ID) || (!defined STREAMER_TYPE_ACTOR) || (!defined RemoveDynamicObjectMaterialText))
#error [ADM] This include required Streamer v2.9.5 (github.com/samp-incognito/samp-streamer-plugin/releases)
#endif
#if defined _streamer_spec
#endinput
#endif
#define _streamer_spec
#if defined STREAMER_TYPE_VEHICLE
#define SSpec_StreamerVehicle
#endif
#define Streamer_Spec_Version (30001) //a.b.c 10000*a+100*b+c
#if defined GetPlayerCustomSkin
#define STREAMER_SPEC_SAMP_VERSION "0.3 DL"
#else
#define STREAMER_SPEC_SAMP_VERSION "0.3.7"
#endif
#define Valid_Streamer_Version (0x295)
#if defined INVALID_DYNAMIC_OBJECT_ID
#if (INVALID_DYNAMIC_OBJECT_ID != INVALID_STREAMER_ID)
#error [ADM] Invalid DestroyDynamicObject Hook version. Invalid definition INVALID_DYNAMIC_OBJECT_ID
#endif
#undef INVALID_DYNAMIC_OBJECT_ID
#endif
#define INVALID_DYNAMIC_OBJECT_ID STREAMER_TAG_OBJECT: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_PICKUP_ID STREAMER_TAG_PICKUP: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_CP_ID STREAMER_TAG_CP: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_RACE_CP_ID STREAMER_TAG_RACE_CP: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_MAP_ICON_ID STREAMER_TAG_MAP_ICON: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_3D_TEXT_ID STREAMER_TAG_3D_TEXT_LABEL: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_AREA_ID STREAMER_TAG_AREA: INVALID_STREAMER_ID
#define INVALID_DYNAMIC_ACTOR_ID STREAMER_TAG_ACTOR: INVALID_STREAMER_ID
#if defined SSpec_StreamerVehicle
#define INVALID_DYNAMIC_VEHICLE_ID STREAMER_TAG_VEHICLE: INVALID_STREAMER_ID
#endif
#define DEFAULT_VISIBLE_OBJECT 500
#define DEFAULT_VISIBLE_PICKUP 4096
#define DEFAULT_VISIBLE_MAP_ICON 100
#define DEFAULT_VISIBLE_3D_TEXT 1024
#define DEFAULT_VISIBLE_ACTOR 1000
#if defined SSpec_StreamerVehicle
#define DEFAULT_VISIBLE_VEHICLE 2000
#endif
#if !defined INVALID_PICKUP_ID
#define INVALID_PICKUP_ID -1
#endif
#if !defined MAX_STREAM_SIZE
#define MAX_STREAM_SIZE 256
#endif
#if !defined INVALID_STREAMER_COMPONENT
#define INVALID_STREAMER_COMPONENT -1
#endif
#define STREAMEX_VEHICLE 12
#define Streamer:: Streamer_
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
#define GET_STREAMER_VERSION 0xFFFFFFFF
#define MOVE_OBJECT_STATE_STOP 0
#define MOVE_OBJECT_STATE_MOVED 1
#define MOVE_OBJECT_STATE_INVALID 2
#define BULLET_HIT_TYPE_DYNAMIC_OBJECT 15
#define GetStreamerVersion() Streamer::IncludeFileVersion
#define GetValidStreamerVersion() Valid_Streamer_Version
//DynamicObject
#define GetDynamicObjectModel(%1) Streamer::GetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_MODEL_ID)
#define SetDynamicObjectModel(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_MODEL_ID,(%2))
#define GetDynamicObjectINT(%1) Streamer::GetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicObjectINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicObjectVW(%1) Streamer::GetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicObjectVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicObjectSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicObjectSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicObjectDD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_DRAW_DISTANCE,(%2))
#define SetDynamicObjectDD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_DRAW_DISTANCE,(%2))
#define GetDynamicObjectMoveSpeed(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_MOVE_SPEED,(%2))
#define SetDynamicObjectMoveSpeed(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_MOVE_SPEED,(%2))
#define DeattachObjectDynamicObject(%1) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_ATTACHED_OBJECT,INVALID_STREAMER_ID)
#define SetDynamicObjectAttachSync(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_SYNC_ROTATION,(%2))
#define GetDynamicObjectArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_AREA_ID)
#define SetDynamicObjectArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicObjectPriority(%1) Streamer::GetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_PRIORITY)
#define SetDynamicObjectPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_OBJECT,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicObjectInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_OBJECT,(%1))
#define SetDynamicObjectInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_OBJECT,(%1),(%2))
#define GetDynamicObjectDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_OBJECT,(%1),(%2))
#define SetDynamicObjectDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_OBJECT,(%1),(%2))
#define RemoveDynamicObjectDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_OBJECT,(%1))
#define IsSetDynamicObjectDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_OBJECT,(%1))
#define UpdateAllDynamicObjects() UpdateAllDynamicItem(STREAMER_TYPE_OBJECT)
//DynamicPickup
#define GetDynamicPickupModel(%1) Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_MODEL_ID)
#define SetDynamicPickupModel(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_MODEL_ID,(%2))
#define GetDynamicPickupSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicPickupSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicPickupVW(%1) Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicPickupVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicPickupINT(%1) Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicPickupINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicPickupType(%1) Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_TYPE)
#define SetDynamicPickupType(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_TYPE,(%2))
#define GetDynamicPickupArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_AREA_ID)
#define SetDynamicPickupArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicPickupPriority(%1) Streamer::GetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_PRIORITY)
#define SetDynamicPickupPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_PICKUP,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicPickupInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_PICKUP,(%1))
#define SetDynamicPickupInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_PICKUP,(%1),(%2))
#define GetDynamicPickupDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_PICKUP,(%1),(%2))
#define SetDynamicPickupDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_PICKUP,(%1),(%2))
#define RemoveDynamicPickupDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_PICKUP,(%1))
#define IsSetDynamicPickupDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_PICKUP,(%1))
#define UpdateAllDynamicPickups() UpdateAllDynamicItem(STREAMER_TYPE_PICKUP)
#define GetDynamicPickupPos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_PICKUP,(%0),(%1),(%2),(%3))
#define SetDynamicPickupPos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_PICKUP,(%0),(%1),(%2),(%3))
//DynamicCP
#define GetDynamicCPSize(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_CP,(%1),E_STREAMER_SIZE,(%2))
#define SetDynamicCPSize(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_CP,(%1),E_STREAMER_SIZE,(%2))
#define GetDynamicCPArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_AREA_ID)
#define SetDynamicCPArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicCPPriority(%1) Streamer::GetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_PRIORITY)
#define SetDynamicCPPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicCPSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_CP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicCPSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_CP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicCPVW(%1) Streamer::GetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicCPVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicCPINT(%1) Streamer::GetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicCPINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_CP,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicCPInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_CP,(%1))
#define SetDynamicCPInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_CP,(%1),(%2))
#define GetDynamicCPDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_CP,(%1),(%2))
#define SetDynamicCPDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_CP,(%1),(%2))
#define RemoveDynamicCPDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_CP,(%1))
#define IsSetDynamicCPDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_CP,(%1))
#define UpdateAllDynamicCPs() UpdateAllDynamicItem(STREAMER_TYPE_CP)
#define GetDynamicCPPos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_CP,(%0),(%1),(%2),(%3))
#define SetDynamicCPPos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_CP,(%0),(%1),(%2),(%3))
//DynamicRaceCP
#define GetDynamicRaceCPSize(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_SIZE,(%2))
#define SetDynamicRaceCPSize(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_SIZE,(%2))
#define GetDynamicRaceCPArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_AREA_ID)
#define SetDynamicRaceCPArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicRaceCPPriority(%1) Streamer::GetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_PRIORITY)
#define SetDynamicRaceCPPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicRaceCPSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicRaceCPSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicRaceCPType(%1) Streamer::GetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_TYPE)
#define SetDynamicRaceCPType(%1,%2) Streamer::SetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_TYPE,(%2))
#define GetDynamicRaceCPVW(%1) Streamer::GetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicRaceCPVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicRaceCPINT(%1) Streamer::GetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicRaceCPINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_RACE_CP,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicRaceCPInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_RACE_CP,(%1))
#define SetDynamicRaceCPInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_RACE_CP,(%1),(%2))
#define GetDynamicRaceCPDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_RACE_CP,(%1),(%2))
#define SetDynamicRaceCPDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_RACE_CP,(%1),(%2))
#define RemoveDynamicRaceCPDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_RACE_CP,(%1))
#define IsSetDynamicRaceCPDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_RACE_CP,(%1))
#define UpdateAllDynamicRaceCPs() UpdateAllDynamicItem(STREAMER_TYPE_RACE_CP)
#define GetDynamicRaceCPPos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_RACE_CP,(%0),(%1),(%2),(%3))
#define SetDynamicRaceCPPos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_RACE_CP,(%0),(%1),(%2),(%3))
//DynamicMapIcon
#define GetDynamicMapIconColor(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_COLOR)
#define SetDynamicMapIconColor(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_COLOR,(%2))
#define GetDynamicMapIconArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_AREA_ID)
#define SetDynamicMapIconArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicMapIconPriority(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_PRIORITY)
#define SetDynamicMapIconPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicMapIconSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicMapIconSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicMapIconType(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_TYPE)
#define SetDynamicMapIconType(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_TYPE,(%2))
#define GetDynamicMapIconVW(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicMapIconVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicMapIconINT(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicMapIconINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicMapIconStyle(%1) Streamer::GetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_STYLE)
#define SetDynamicMapIconStyle(%1,%2) Streamer::SetIntData(STREAMER_TYPE_MAP_ICON,(%1),E_STREAMER_STYLE,(%2))
#define GetDynamicMapIconDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_MAP_ICON,(%1),(%2))
#define SetDynamicMapIconDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_MAP_ICON,(%1),(%2))
#define GetDynamicMapIconInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_MAP_ICON,(%1))
#define SetDynamicMapIconInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_MAP_ICON,(%1),(%2))
#define RemoveDynamicMapIconDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_MAP_ICON,(%1))
#define IsSetDynamicMapIconDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_MAP_ICON,(%1))
#define UpdateAllDynamicMapIcons() UpdateAllDynamicItem(STREAMER_TYPE_MAP_ICON)
#define GetDynamicMapIconPos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_MAP_ICON,(%0),(%1),(%2),(%3))
#define SetDynamicMapIconPos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_MAP_ICON,(%0),(%1),(%2),(%3))
//Dynamic3DText
#define GetDynamic3DTextDD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_DRAW_DISTANCE,(%2))
#define SetDynamic3DTextDD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_DRAW_DISTANCE,(%2))
#define GetDynamic3DTextSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamic3DTextSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamic3DTextVW(%1) Streamer::GetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_WORLD_ID)
#define SetDynamic3DTextVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamic3DTextINT(%1) Streamer::GetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamic3DTextINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamic3DTextColor(%1) Streamer::GetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_COLOR)
#define SetDynamic3DTextColor(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_COLOR,(%2))
#define SetDynamic3DTextTestLos(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_TEST_LOS,(%2))
#define AttachDynamic3DTextToPlayer(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_ATTACHED_PLAYER,(%2))
#define AttachDynamic3DTextToVehicle(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_ATTACHED_VEHICLE,(%2))
#define GetDynamic3DTextArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_AREA_ID)
#define SetDynamic3DTextArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamic3DTextPriority(%1) Streamer::GetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_PRIORITY)
#define SetDynamic3DTextPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamic3DTextInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_3D_TEXT_LABEL,(%1))
#define SetDynamic3DTextInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_3D_TEXT_LABEL,(%1),(%2))
#define GetDynamic3DTextDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_3D_TEXT_LABEL,(_:%1),(%2))
#define SetDynamic3DTextDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_3D_TEXT_LABEL,(_:%1),(%2))
#define RemoveDynamic3DTextDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_3D_TEXT_LABEL,(_:%1))
#define IsSetDynamic3DTextDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_3D_TEXT_LABEL,(_:%1))
#define UpdateAllDynamic3DTextLabels() UpdateAllDynamicItem(STREAMER_TYPE_3D_TEXT_LABEL)
#define GetDynamic3DTextPos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_3D_TEXT_LABEL,(%0),(%1),(%2),(%3))
#define SetDynamic3DTextPos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_3D_TEXT_LABEL,(%0),(%1),(%2),(%3))
//DynamicArea
#define GetDynamicAreaVW(%1) Streamer::GetIntData(STREAMER_TYPE_AREA,(%1),E_STREAMER_WORLD_ID)
#define SetDynamicAreaVW(%1,%2) Streamer::SetIntData(STREAMER_TYPE_AREA,(%1),E_STREAMER_WORLD_ID,(%2))
#define GetDynamicAreaINT(%1) Streamer::GetIntData(STREAMER_TYPE_AREA,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicAreaINT(%1,%2) Streamer::SetIntData(STREAMER_TYPE_AREA,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicAreaSize(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_AREA,(%1),E_STREAMER_SIZE,(%2))
#define SetDynamicAreaSize(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_AREA,(%1),E_STREAMER_SIZE,(%2))
#define GetDynamicAreaDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_AREA,(%1),(%2))
#define SetDynamicAreaDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_AREA,(%1),(%2))
#define RemoveDynamicAreaDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_AREA,(%1))
#define IsSetDynamicAreaDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_AREA,(%1))
#define UpdateAllDynamicAreas() UpdateAllDynamicItem(STREAMER_TYPE_AREA)
#define GetDynamicSpherePos(%0,%1,%2,%3) Streamer::GetItemPos(STREAMER_TYPE_AREA,(%0),(%1),(%2),(%3))
#define SetDynamicSpherePos(%0,%1,%2,%3) Streamer::SetItemPos(STREAMER_TYPE_AREA,(%0),(%1),(%2),(%3))
//DynamicActor
#define GetDynamicActorModel(%1) Streamer::GetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_MODEL_ID)
#define SetDynamicActorModel(%1,%2) Streamer::SetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_MODEL_ID,(%2))
#define GetDynamicActorInterior(%1) Streamer::GetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_INTERIOR_ID)
#define SetDynamicActorInterior(%1,%2) Streamer::SetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_INTERIOR_ID,(%2))
#define GetDynamicActorArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_AREA_ID)
#define SetDynamicActorArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicActorPriority(%1) Streamer::GetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_PRIORITY)
#define SetDynamicActorPriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicActorSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicActorSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_ACTOR,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicActorInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_ACTOR,(%1))
#define SetDynamicActorInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_ACTOR,(%1),(%2))
#define GetDynamicActorDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_ACTOR,(%1),(%2))
#define SetDynamicActorDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_ACTOR,(%1),(%2))
#define RemoveDynamicActorDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_ACTOR,(%1))
#define IsSetDynamicActorDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_ACTOR,(%1))
#define DestroyAllDynamicActors() Streamer::DestroyAllItems(STREAMER_TYPE_ACTOR,1)
#define CountDynamicActors() Streamer::CountItems(STREAMER_TYPE_ACTOR,1)
#define UpdateAllDynamicActors() UpdateAllDynamicItem(STREAMER_TYPE_ACTOR)
//DynamicVehicle
#if defined SSpec_StreamerVehicle
#define SetDynamicVehicleModel(%1,%2) Streamer::SetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_MODEL_ID,(%2))
#define GetDynamicVehicleSiren(%1) Streamer::GetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_SIREN)
#define SetDynamicVehicleSiren(%1,%2) Streamer::SetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_SIREN,(%2))
#define GetDynamicVehicleRespawnTime(%1) Streamer::GetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_RESPAWN_TIME)
#define SetDynamicVehicleRespawnTime(%1,%2) Streamer::SetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_RESPAWN_TIME,(%2))
#define GetDynamicVehicleArea(%1) STREAMER_TAG_AREA:Streamer::GetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_AREA_ID)
#define SetDynamicVehicleArea(%1,%2) Streamer::SetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_AREA_ID,(_:%2))
#define GetDynamicVehiclePriority(%1) Streamer::GetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_PRIORITY)
#define SetDynamicVehiclePriority(%1,%2) Streamer::SetIntData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_PRIORITY,(%2))
#define GetDynamicVehicleSD(%1,%2) Streamer::GetFloatData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define SetDynamicVehicleSD(%1,%2) Streamer::SetFloatData(STREAMER_TYPE_VEHICLE,(%1),E_STREAMER_STREAM_DISTANCE,(%2))
#define GetDynamicVehicleInvertArea(%1) Streamer::IsToggleItemInvAreas(STREAMER_TYPE_VEHICLE,(%1))
#define SetDynamicVehicleInvertArea(%1,%2) Streamer::ToggleItemInvAreas(STREAMER_TYPE_VEHICLE,(%1),(%2))
#define GetDynamicVehicleDatagram(%1,%2) GetStreamerDatagram(STREAMER_TYPE_VEHICLE,(%1),(%2))
#define SetDynamicVehicleDatagram(%1,%2) SetStreamerDatagram(STREAMER_TYPE_VEHICLE,(%1),(%2))
#define RemoveDynamicVehicleDatagram(%1) RemoveStreamDatagram(STREAMER_TYPE_VEHICLE,(%1))
#define IsSetDynamicVehicleDatagram(%1) IsSetStreamerDatagram(STREAMER_TYPE_VEHICLE,(%1))
#define DestroyAllDynamicVehicles() Streamer::DestroyAllItems(STREAMER_TYPE_VEHICLE,1)
#define CountDynamicVehicles() Streamer::CountItems(STREAMER_TYPE_VEHICLE,1)
#define GetDynamicVehiclePoolSize() Streamer::GetUpperBound(STREAMER_TYPE_VEHICLE)
#define ForDynamicVehicles(%1) for(new STREAMER_TAG_VEHICLE:%1 = STREAMER_TAG_VEHICLE:1, STREAMER_TAG_VEHICLE:p_%1 = STREAMER_TAG_VEHICLE:GetDynamicVehiclePoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_VEHICLE:((_:%1)+=1))
#define GetNearestVisibleVehicle(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_VEHICLE)
#define UpdateAllDynamicVehicles() UpdateAllDynamicItem(STREAMER_TYPE_VEHICLE)
#endif
//DynamicAntiArea
#define IsPlayerInAntiArea(%0,%1,%2) (!IsPlayerInDynamicArea(%0,%1,%2))
#define IsPlayerInAnyAntiArea(%0,%1) (!IsPlayerInAnyDynamicArea(%0,%1))
#define IsAnyPlayerInAntiArea(%0,%1) (!IsAnyPlayerInDynamicArea(%0,%1))
#define IsAnyPlayerInAnyAntiArea(%0) (!IsAnyPlayerInAnyDynamicArea(%0))
#define IsPointInAntiArea(%0,%1,%2,%3) (!IsPointInDynamicArea(%0,%1,%2,%3))
//Vehicle
#define GetVehicleDatagram(%1,%2) GetStreamerDatagram(STREAMEX_VEHICLE,(%1),(%2))
#define SetVehicleDatagram(%1,%2) SetStreamerDatagram(STREAMEX_VEHICLE,(%1),(%2))
#define RemoveVehicleDatagram(%1) RemoveStreamDatagram(STREAMEX_VEHICLE,(%1))
#define IsSetVehicleDatagram(%1) IsSetStreamerDatagram(STREAMEX_VEHICLE,(%1))
//PoolSize
#define GetDynamicObjectPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_OBJECT)
#define GetDynamicPickupPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_PICKUP)
#define GetDynamicCPPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_CP)
#define GetDynamicRaceCPPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_RACE_CP)
#define GetDynamicMapIconPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_MAP_ICON)
#define GetDynamic3DTextPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_3D_TEXT_LABEL)
#define GetDynamicAreaPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_AREA)
#define GetDynamicActorPoolSize() Streamer::GetUpperBound(STREAMER_TYPE_ACTOR)
//Foreach
#define ForDynamicObjects(%1) for(new STREAMER_TAG_OBJECT: %1 = STREAMER_TAG_OBJECT: 1, STREAMER_TAG_OBJECT: p_%1 = STREAMER_TAG_OBJECT: GetDynamicObjectPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_OBJECT: ((_:%1)+=1))
#define ForDynamicPickups(%1) for(new STREAMER_TAG_PICKUP: %1 = STREAMER_TAG_PICKUP: 1, STREAMER_TAG_PICKUP: p_%1 = STREAMER_TAG_PICKUP: GetDynamicPickupPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_PICKUP: ((_:%1)+=1))
#define ForDynamicCPs(%1) for(new STREAMER_TAG_CP: %1 = STREAMER_TAG_CP: 1, STREAMER_TAG_CP: p_%1 = STREAMER_TAG_CP: GetDynamicCPPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_CP: ((_:%1)+=1))
#define ForDynamicRaceCPs(%1) for(new STREAMER_TAG_RACE_CP: %1 = STREAMER_TAG_RACE_CP: 1, STREAMER_TAG_RACE_CP: p_%1 = STREAMER_TAG_RACE_CP: GetDynamicRaceCPPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_RACE_CP: ((_:%1)+=1))
#define ForDynamicMapIcons(%1) for(new STREAMER_TAG_MAP_ICON: %1 = STREAMER_TAG_MAP_ICON: 1, STREAMER_TAG_MAP_ICON: p_%1 = STREAMER_TAG_MAP_ICON: GetDynamicMapIconPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_MAP_ICON: ((_:%1)+=1))
#define ForDynamic3DTextLabels(%1) for(new STREAMER_TAG_3D_TEXT_LABEL: %1 = STREAMER_TAG_3D_TEXT_LABEL:1, STREAMER_TAG_3D_TEXT_LABEL: p_%1 = STREAMER_TAG_3D_TEXT_LABEL: GetDynamic3DTextPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_3D_TEXT_LABEL: ((_:%1)+=1))
#define ForDynamicAreas(%1) for(new STREAMER_TAG_AREA: %1 = STREAMER_TAG_AREA: 1, STREAMER_TAG_AREA: p_%1 = STREAMER_TAG_AREA: GetDynamicAreaPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_AREA: ((_:%1)+=1))
#define ForDynamicActors(%1) for(new STREAMER_TAG_ACTOR: %1 = STREAMER_TAG_ACTOR: 1, STREAMER_TAG_ACTOR: p_%1 = STREAMER_TAG_ACTOR: GetDynamicActorPoolSize(); _:%1 <= _:p_%1; STREAMER_TAG_ACTOR: ((_:%1)+=1))
//GetNearestVisibleItem
#define GetNearestVisibleObject(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_OBJECT)
#define GetNearestVisiblePickup(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_PICKUP)
#define GetNearestVisibleCP(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_CP)
#define GetNearestVisibleRaceCP(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_RACE_CP)
#define GetNearestVisibleMapIcon(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_MAP_ICON)
#define GetNearestVisible3DText(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_3D_TEXT_LABEL)
#define GetNearestVisibleArea(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_AREA)
#define GetNearestVisibleActor(%0) GetNearestVisibleItem((%0),STREAMER_TYPE_ACTOR)
//Internal
#define GetStreamerSpecActiveCount() GetSVarInt("ADM:StreamerSpec:ACTIVE")
//extra names
#define SetDynamic3DTextAttachPlayer AttachDynamic3DTextToPlayer
#define SetDynamic3DTextAttachVehicle AttachDynamic3DTextToVehicle
//Datagram
stock GetStreamerDatagram(type,STREAMER_ALL_TAGS:itemid,data[]){
new address[32];
format(address,sizeof(address),"Stream:%d:%d",type,_:itemid);
GetSVarString(address,data,MAX_STREAM_SIZE);
}
stock SetStreamerDatagram(type,STREAMER_ALL_TAGS:itemid,const data[]){
new address[32];
format(address,sizeof(address),"Stream:%d:%d",type,_:itemid);
SetSVarString(address,data);
}
stock RemoveStreamDatagram(type,STREAMER_ALL_TAGS:itemid){
new address[32];
format(address,sizeof(address),"Stream:%d:%d",type,_:itemid);
DeleteSVar(address);
}
stock bool:IsSetStreamerDatagram(type,STREAMER_ALL_TAGS:itemid){
new stream_data[MAX_STREAM_SIZE];
GetStreamerDatagram(type,_:itemid,stream_data);
if(isnull(stream_data)) return false;
return true;
}
stock bool:IsValidStreamer(version){
return (GetStreamerVersion() == version);
}
stock GetStreamerVersionName(name[], value = GET_STREAMER_VERSION, maxdest = sizeof name){
if(value == GET_STREAMER_VERSION) value = GetStreamerVersion();
new ver_str[10];
format(ver_str,sizeof(ver_str),"%03x",value);
format(name,maxdest,"%d.%d.%d",(ver_str[0]-48),(ver_str[1]-48),(ver_str[2]-48));
}
stock SetDynamicObjectPosAndRot(STREAMER_TAG_OBJECT:objectid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz){
SetDynamicObjectPos(objectid,x,y,z);
SetDynamicObjectRot(objectid,rx,ry,rz);
}
stock GetDynamicObjectPosAndRot(STREAMER_TAG_OBJECT:objectid,&Float:x,&Float:y,&Float:z,&Float:rx,&Float:ry,&Float:rz){
GetDynamicObjectPos(objectid,x,y,z);
GetDynamicObjectRot(objectid,rx,ry,rz);
}
stock SetObjectPosAndRot(objectid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz){
SetObjectPos(objectid,x,y,z);
SetObjectRot(objectid,rx,ry,rz);
}
stock GetObjectPosAndRot(objectid,&Float:x,&Float:y,&Float:z,&Float:rx,&Float:ry,&Float:rz){
GetObjectPos(objectid,x,y,z);
GetObjectRot(objectid,rx,ry,rz);
}
stock CountObjects(){
new count = 0;
for(new i = 0; i < MAX_OBJECTS; i++){
if(IsValidObject(i)) count++;
}
return count;
}
stock DestroyObjects(){
new count = 0;
for(new i = 0; i < MAX_OBJECTS; i++){
if(IsValidObject(i)){
DestroyObject(i);
count++;
}
}
return count;
}
stock CountVehicles(){
new count = 0;
for(new i = 0, j = GetVehiclePoolSize(); i <= j; i++){
if(IsValidVehicle(i)) count++;
}
return count;
}
stock DestroyVehicles(){
new count = 0;
for(new i = 0, j = GetVehiclePoolSize(); i <= j; i++){
if(IsValidVehicle(i)){
DestroyVehicle(i);
count++;
}
}
return count;
}
stock GangZoneDestroyAll(){
for(new i = 0; i < MAX_GANG_ZONES; i++){
GangZoneDestroy(i);
}
}
stock CountPlayerObjects(playerid,bool:streamer = false){
new count = 0;
for(new i = 0; i < MAX_OBJECTS; i++){
if(streamer){
if(IsValidPlayerObject(playerid,i)){
count++;
}
} else {
if(Streamer::GetItemStreamerID(playerid,STREAMER_TYPE_OBJECT,i) == INVALID_STREAMER_ID){
if(IsValidPlayerObject(playerid,i)){
count++;
}
}
}
}
return count;
}
stock DestroyPlayerObjects(playerid,bool:streamer = false){
new count = 0;
for(new i = 0; i < MAX_OBJECTS; i++){
if(streamer){
if(IsValidPlayerObject(playerid,i)){
DestroyPlayerObject(playerid,i);
count++;
}
} else {
if(Streamer::GetItemStreamerID(playerid,STREAMER_TYPE_OBJECT,i) == INVALID_STREAMER_ID){
if(IsValidPlayerObject(playerid,i)){
DestroyPlayerObject(playerid,i);
count++;
}
}
}
}
return count;
}
stock DestroyVehicleDynamicObject(vehicleid){
new count = 0;
ForDynamicObjects(i){
if(IsValidDynamicObject(i)){
if(Streamer::GetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_VEHICLE) == vehicleid){
DestroyDynamicObject(i);
count++;
}
}
}
return count;
}
stock DeattachVehicleDynamicObject(vehicleid){
new count = 0;
ForDynamicObjects(i){
if(IsValidDynamicObject(i)){
if(Streamer::GetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_VEHICLE) == vehicleid){
Streamer::SetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_VEHICLE,INVALID_VEHICLE_ID);
count++;
}
}
}
return count;
}
stock DeattachPlayerDynamicObject(playerid){
new count = 0;
ForDynamicObjects(i){
if(IsValidDynamicObject(i)){
if(Streamer::GetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_PLAYER) == playerid){
Streamer::SetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_PLAYER,INVALID_PLAYER_ID);
count++;
}
}
}
return count;
}
stock DestroyPlayerDynamicObject(playerid){
new count = 0;
ForDynamicObjects(i){
if(IsValidDynamicObject(i)){
if(Streamer::GetIntData(STREAMER_TYPE_OBJECT,i,E_STREAMER_ATTACHED_PLAYER) == playerid){
DestroyDynamicObject(i);
count++;
}
}
}
return count;
}
stock GetDynamicRaceCPNext(STREAMER_TAG_RACE_CP:checkpointid,&Float:nextx,&Float:nexty,&Float:nextz){
Streamer::GetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_X,nextx);
Streamer::GetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_Y,nexty);
Streamer::GetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_Z,nextz);
}
stock SetDynamicRaceCPNext(STREAMER_TAG_RACE_CP:checkpointid,Float:nextx,Float:nexty,Float:nextz){
Streamer::SetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_X,nextx);
Streamer::SetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_Y,nexty);
Streamer::SetFloatData(STREAMER_TYPE_RACE_CP,checkpointid,E_STREAMER_NEXT_Z,nextz);
}
stock GetDynamicObjectMovePos(STREAMER_TAG_OBJECT:objectid,&Float:x,&Float:y,&Float:z){
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_X,x);
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_Y,y);
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_Z,z);
}
stock GetDynamicObjectMoveRot(STREAMER_TAG_OBJECT:objectid,&Float:rx,&Float:ry,&Float:rz){
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_R_X,rx);
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_R_Y,ry);
Streamer::GetFloatData(STREAMER_TYPE_OBJECT,objectid,E_STREAMER_MOVE_R_Z,rz);
}
stock GetDynamicCirclePos(STREAMER_TAG_AREA:areaid,&Float:x,&Float:y){
new Float:z;
Streamer::GetItemPos(STREAMER_TYPE_AREA,areaid,x,y,z);
}
stock SetDynamicCirclePos(STREAMER_TAG_AREA:areaid,Float:x,Float:y){
new Float:z;
Streamer::SetItemPos(STREAMER_TYPE_AREA,areaid,x,y,z);
}
stock GetDynamicCylinderPos(STREAMER_TAG_AREA:areaid,&Float:x,&Float:y,&Float:minz,&Float:maxz){
new Float:z;
Streamer::GetItemPos(STREAMER_TYPE_AREA,areaid,x,y,z);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Z,minz);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Z,maxz);
}
stock SetDynamicCylinderPos(STREAMER_TAG_AREA:areaid,Float:x,Float:y,Float:minz,Float:maxz){
new Float:z;
Streamer::SetItemPos(STREAMER_TYPE_AREA,areaid,x,y,z);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Z,minz);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Z,maxz);
}
stock GetDynamicCubePos(STREAMER_TAG_AREA:areaid,&Float:minx,&Float:miny,&Float:minz,&Float:maxx,&Float:maxy,&Float:maxz){
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_X,minx);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Y,miny);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Z,minz);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_X,maxx);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Y,maxy);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Z,maxz);
}
stock SetDynamicCubePos(STREAMER_TAG_AREA:areaid,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz){
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_X,minx);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Y,miny);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Z,minz);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_X,maxx);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Y,maxy);
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Z,maxz);
}
stock GetDynamicRectanglePos(STREAMER_TAG_AREA:areaid,&Float:minx,&Float:miny,&Float:maxx,&Float:maxy){
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_X,minx);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_Y,miny);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_X,maxx);
Streamer::GetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MAX_Y,maxy);
}
stock SetDynamicRectanglePos(STREAMER_TAG_AREA:areaid,Float:minx,Float:miny,Float:maxx,Float:maxy){
Streamer::SetFloatData(STREAMER_TYPE_AREA,areaid,E_STREAMER_MIN_X,minx);