// MetaHook Include
// Version 1.0
// Author: Martin
#if defined _metahook_included
#endinput
#endif
#define _metahook_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib metahook
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib metahook
#endif
#else
#pragma library metahook
#endif
// »ñµÃÍæ¼ÒÊÇ·ñʹÓà MetaHook
// ×¢Òâ: Èç¹ûÕâ¸öº¯Êý²»ÄÜÕý³£Ê¹ÓÃ, ÇëÔÚ "Putinserver" µÄʱºòÔö¼ÓÖÁÉÙ 0.15 ÃëµÄÑÓ³Ù.
// ÒÔÏÂËùÓк¯Êý¶¼µÃ¾¹ýÕâ¸öÅжϼ´¿É.
//
// iIndex = Íæ¼ÒË÷Òý
//
// ·µ»Ø: ʹÓ÷µ»Ø 1, δʹÓ÷µ»Ø 0.
//
native MH_IsMetaHookPlayer(iIndex)
// ÏÔʾ¸øÍæ¼ÒÒ»ÕÅͼƬ (SPR)
//
// iIndex = Íæ¼ÒË÷Òý
// iCenter = ÊÇ·ñͼƬ¾ÓÖÐ
// szSprite = ͼƬÎļþÃû
// x = ºáÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// y = ×ÝÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// r = ͼƬÏûÏ¢µÄºìɫֵ
// g = ͼƬÏûÏ¢µÄÂÌɫֵ
// b = ͼƬÏûÏ¢µÄÀ¶É«Öµ
// iMode = ͼƬÏûÏ¢ÏÔʾģʽ [0 - ½ûÓà // 1 - µÈë // 2 - µ³ö // 3 - µÈëµ³ö]
// flTime = ͼƬÏûÏ¢µÄÏÔʾʱ¼ä
// iChanne = ͼƬÏûÏ¢µÄͨµÀÖµ (СÓÚ 0 »òÕß´óÓÚ 63 ÎªËæ»ú)
//
native MH_DrawImage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0)
// ÏÔʾ¸øÍæ¼ÒÒ»ÕÅ Additive ģʽͼƬ (SPR)
//
// iIndex = Íæ¼ÒË÷Òý
// iCenter = ÊÇ·ñͼƬ¾ÓÖÐ
// szSprite = ͼƬÎļþÃû
// x = ºáÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// y = ×ÝÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// r = ͼƬÏûÏ¢µÄºìɫֵ
// g = ͼƬÏûÏ¢µÄÂÌɫֵ
// b = ͼƬÏûÏ¢µÄÀ¶É«Öµ
// iMode = ͼƬÏûÏ¢ÏÔʾģʽ [0 - ½ûÓà // 1 - µÈë // 2 - µ³ö // 3 - µÈëµ³ö]
// flTime = ͼƬÏûÏ¢µÄÏÔʾʱ¼ä
// iChanne = ͼƬÏûÏ¢µÄͨµÀÖµ (СÓÚ 0 »òÕß´óÓÚ 63 ÎªËæ»ú)
//
native MH_DrawAdditiveImage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0)
// ÏÔʾ¸øÍæ¼ÒÒ»ÕÅ Holes ģʽͼƬ (SPR)
//
// iIndex = Íæ¼ÒË÷Òý
// iCenter = ÊÇ·ñͼƬ¾ÓÖÐ
// szSprite = ͼƬÎļþÃû
// x = ºáÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// y = ×ÝÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// r = ͼƬÏûÏ¢µÄºìɫֵ
// g = ͼƬÏûÏ¢µÄÂÌɫֵ
// b = ͼƬÏûÏ¢µÄÀ¶É«Öµ
// iMode = ͼƬÏûÏ¢ÏÔʾģʽ [0 - ½ûÓà // 1 - µÈë // 2 - µ³ö // 3 - µÈëµ³ö]
// flTime = ͼƬÏûÏ¢µÄÏÔʾʱ¼ä
// iChanne = ͼƬÏûÏ¢µÄͨµÀÖµ (СÓÚ 0 »òÕß´óÓÚ 63 ÎªËæ»ú)
//
native MH_DrawHolesImage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0)
// ÏÔʾ¸øÍæ¼ÒÒ»¶ÎÎÄ×Ö
//
// iIndex = Íæ¼ÒË÷Òý
// iCenter = ÊÇ·ñÎÄ×Ö¾ÓÖÐ
// szText = ÐèÒªÏÔʾµÄÎÄ×Ö
// x = ºáÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// y = ×ÝÏò×ø±ê (0.5 ΪÆÁÄ»ÖÐÐÄλÖÃ)
// r = ÎÄ×ÖÏûÏ¢µÄºìɫֵ
// g = ÎÄ×ÖÏûÏ¢µÄÂÌɫֵ
// b = ÎÄ×ÖÏûÏ¢µÄÀ¶É«Öµ
// flTime = ÎÄ×ÖÏûÏ¢µÄÏÔʾʱ¼ä
// iChanne = ÎÄ×ÖÏûÏ¢µÄͨµÀÖµ (СÓÚ 0 »òÕß´óÓÚ 63 ÎªËæ»ú)
//
native MH_DrawText(iIndex, iCenter = 1, const szText[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, Float:flDisplayTime = 1.0, iChanne = 0)
// ÉèÖÃÍæ¼ÒÊÓ½ÇÄ£Ð͵ÄÉíÌ岿λ
//
// iIndex = Íæ¼ÒË÷Òý
// iBody = ÉíÌ岿λ (-1 ²»×öÈκθıä)
//
native MH_SetViewEntityBody(iIndex, iBody = -1)
// ÉèÖÃÍæ¼ÒÊÓ½ÇÄ£Ð͵ÄäÖȾÊôÐÔ
// äÖȾÊôÐÔ²ÎÊýÇë²ÎÕÕ "amxconst.inc".
//
// iIndex = Íæ¼ÒË÷Òý
// iMode = äÖȾģʽ (-1 ²»×öÈκθıä)
// iEffect = äÖÈ¾ÌØÐ§
// iColorR = äÖȾºìɫֵ
// iColorG = äÖȾÂÌɫֵ
// iColorB = äÖȾÀ¶É«Öµ
// iAmout = äÖȾֵ
//
native MH_SetViewEntityRender(iIndex, iMode = -1, iEffect, iColorR, iColorG, iColorB, iAmout)
// ¶îÍâÃüÃû¶¨Òå
stock mh_is_metahook_player(iIndex) { MH_IsMetaHookPlayer(iIndex); }
stock mh_drawimage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0) { MH_DrawImage(iIndex, iCenter, szSprite, x, y, r, g, b, iMode, flDisplayTime, iChanne); }
stock mh_drawadditiveimage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0) { MH_DrawAdditiveImage(iIndex, iCenter, szSprite, x, y, r, g, b, iMode, flDisplayTime, iChanne); }
stock mh_drawholesimage(iIndex, iCenter = 1, const szSprite[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, iMode = 0, Float:flDisplayTime = 1.0, iChanne = 0) { MH_DrawHolesImage(iIndex, iCenter, szSprite, x, y, r, g, b, iMode, flDisplayTime, iChanne); }
stock mh_drawText(iIndex, iCenter = 1, const szText[], Float

= 0.5, Float:y = 0.5, r = 255, g = 255, b = 255, Float:flDisplayTime = 1.0, iChanne = 0) { MH_DrawText(iIndex, iCenter, szText, x, y, r, g, b, flDisplayTime, iChanne); }
stock mh_setviewentitybody(iIndex, iBody = 0) { MH_SetViewEntityBody(iIndex, iBody = -1); }
stock mh_setviewentityrender(iIndex, iMode = -1, iEffect, iColorR, iColorG, iColorB, iAmout) { MH_SetViewEntityRender(iIndex, iMode, iEffect, iColorR, iColorG, iColorB, iAmout); }
bác giải thích dùm em với.. Em ngu đọc mãi cũng ko biết dùng!