forked from IstuntmanI/samp-streamer-plugin-sampgdk-invoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallbacks.cpp
108 lines (90 loc) · 2.05 KB
/
callbacks.cpp
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
/*
This file is just an example, you have to define all these callbacks in any .cpp file of your project as shown here,
otherwise you will get some linking errors because they are called without being defined.
*/
#include "streamer.hpp"
bool OnDynamicObjectMoved( int objectid )
{
// your plugin's code
return 1;
}
bool OnPlayerEditDynamicObject( int playerid, int objectid, int response, float x, float y, float z, float rx, float ry, float rz )
{
// your plugin's code
return 1;
}
bool OnPlayerSelectDynamicObject( int playerid, int objectid, int modelid, float x, float y, float z )
{
// your plugin's code
return 1;
}
bool OnPlayerShootDynamicObject( int playerid, int weaponid, int objectid, float x, float y, float z )
{
// your plugin's code
return 1;
}
bool OnPlayerPickUpDynamicPickup( int playerid, int pickupid )
{
// your plugin's code
return 1;
}
bool OnPlayerEnterDynamicCP( int playerid, int checkpointid )
{
// your plugin's code
return 1;
}
bool OnPlayerLeaveDynamicCP( int playerid, int checkpointid )
{
// your plugin's code
return 1;
}
bool OnPlayerEnterDynamicRaceCP( int playerid, int checkpointid )
{
// your plugin's code
return 1;
}
bool OnPlayerLeaveDynamicRaceCP( int playerid, int checkpointid )
{
// your plugin's code
return 1;
}
bool OnPlayerEnterDynamicArea( int playerid, int areaid )
{
// your plugin's code
return 1;
}
bool OnPlayerLeaveDynamicArea( int playerid, int areaid )
{
// your plugin's code
return 1;
}
bool OnPlayerGiveDamageDynamicActor( int playerid, int actorid, float amount, int weaponid, int bodypart )
{
// your plugin's code
return 1;
}
bool OnDynamicActorStreamIn( int actorid, int forplayerid )
{
// your plugin's code
return 1;
}
bool OnDynamicActorStreamOut( int actorid, int forplayerid )
{
// your plugin's code
return 1;
}
bool Streamer_OnItemStreamIn( int type, int id )
{
// your plugin's code
return 1;
}
bool Streamer_OnItemStreamOut( int type, int id )
{
// your plugin's code
return 1;
}
bool Streamer_OnPluginError( const char error[ ] )
{
// your plugin's code
return 1;
}