Код:
#if defined OnPlayerSelectDynamicObject
#if defined _inc_y_hooks || defined _INC_y_hooks
Hook:ac_OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:x, Float:y, Float:z)
#else
public OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:x, Float:y, Float:z)
#endif
{
if(AntiCheatInfo[playerid][acKicked]) return 0;
new ac_i = GetTickCount();
if(AntiCheatInfo[playerid][acACAllow][49])
{
if(ac_i < AntiCheatInfo[playerid][acCall][26] + ac_Mtfc[26][0]) ac_FloodDetect(playerid, 26);
else if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
else AntiCheatInfo[playerid][acFloodCount][26] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
}
AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][26] = ac_i;
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerSelectDynamicObject
return ac_OnPlayerSelectDynamicObject(playerid, objectid, modelid, x, y, z);
#else
return 1;
#endif
}
#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerSelectDynamicObjec\
|| defined _ALS_OnPlayerSelectDynamicObj || defined _ALS_OnPlayer\
SelectDynamicObject
#undef OnPlayerSelectDynamicObject
#else
#define _ALS_OnPlayerSelectDynamicObject
#endif
#define OnPlayerSelectDynamicObject ac_OnPlayerSelectDynamicObject
#if defined ac_OnPlayerSelectDynamicObject
forward ac_OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:x, Float:y, Float:z);
#endif
#endif
#else
#if defined _inc_y_hooks || defined _INC_y_hooks
Hook:ac_OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
#else
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
#endif
{
if(AntiCheatInfo[playerid][acKicked]) return 0;
new ac_i = GetTickCount();
if(AntiCheatInfo[playerid][acACAllow][49])
{
if(ac_i < AntiCheatInfo[playerid][acCall][26] + ac_Mtfc[26][0]) ac_FloodDetect(playerid, 26);
else if(ac_i < AntiCheatInfo[playerid][acCall][27] + ac_Mtfc[27][0]) ac_FloodDetect(playerid, 27);
else AntiCheatInfo[playerid][acFloodCount][26] = AntiCheatInfo[playerid][acFloodCount][27] = 0;
}
AntiCheatInfo[playerid][acCall][27] = AntiCheatInfo[playerid][acCall][26] = ac_i;
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerSelectObject
return ac_OnPlayerSelectObject(playerid, type, objectid, modelid, fX, fY, fZ);
#else
return 1;
#endif
}
#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerSelectObject
#undef OnPlayerSelectObject
#else
#define _ALS_OnPlayerSelectObject
#endif
#define OnPlayerSelectObject ac_OnPlayerSelectObject
#if defined ac_OnPlayerSelectObject
forward ac_OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);
#endif
#endif
#endif