@@ -71,7 +71,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerText(int playerid, const char * text) {
71
71
}
72
72
73
73
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerEnterVehicle (int playerid , int vehicleid , bool ispassenger ) {
74
- return PySAMP ::callback ("OnPlayerEnterVehicle" , Py_BuildValue ("(iip )" , playerid , vehicleid , ispassenger ));
74
+ return PySAMP ::callback ("OnPlayerEnterVehicle" , Py_BuildValue ("(iiO )" , playerid , vehicleid , ( ispassenger ? Py_True : Py_False ) ));
75
75
}
76
76
77
77
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerExitVehicle (int playerid , int vehicleid ) {
@@ -164,7 +164,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerKeyStateChange(int playerid, int newkeys,
164
164
PLUGIN_EXPORT bool PLUGIN_CALL OnRconLoginAttempt (const char * ip , const char * password , bool success ) {
165
165
char * ipStr = fromConst (ip );
166
166
char * passwordStr = fromConst (password );
167
- bool ret = PySAMP ::callback ("OnRconLoginAttempt" , Py_BuildValue ("(ssp )" , ipStr , passwordStr , success ));
167
+ bool ret = PySAMP ::callback ("OnRconLoginAttempt" , Py_BuildValue ("(ssO )" , ipStr , passwordStr , ( success ? Py_True : Py_False ) ));
168
168
delete [] ipStr , passwordStr ;
169
169
return ret ;
170
170
}
@@ -249,7 +249,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerClickPlayer(int playerid, int clickedplay
249
249
}
250
250
251
251
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerEditObject (int playerid , bool playerobject , int objectid , int response , float fX , float fY , float fZ , float fRotX , float fRotY , float fRotZ ) {
252
- return PySAMP ::callback ("OnPlayerEditObject" , Py_BuildValue ("(ipiiffffff )" , playerid , playerobject , objectid , response , fX , fY , fZ , fRotX , fRotY , fRotZ ));
252
+ return PySAMP ::callback ("OnPlayerEditObject" , Py_BuildValue ("(iOiiffffff )" , playerid , ( playerobject ? Py_True : Py_False ) , objectid , response , fX , fY , fZ , fRotX , fRotY , fRotZ ));
253
253
}
254
254
255
255
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerEditAttachedObject (int playerid , int response , int index , int modelid , int boneid , float fOffsetX , float fOffsetY , float fOffsetZ , float fRotX , float fRotY , float fRotZ , float fScaleX , float fScaleY , float fScaleZ ) {
0 commit comments