Thread: [Tutorial] Plugin development guide
View Single Post
Old 16/03/2016, 08:28 AM   #165
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 297
Reputation: 116
Default Re: Plugin development guide

Here you go.

Code:
typedef cell(*AMX_NATIVE_CALL pfn_SetPlayerHealth)(AMX*, cell*);
cell AMX_NATIVE_CALL Test(AMX* amx, cell* params)
{
	pfn_SetPlayerHealth SetPlayerHealth_t = (pfn_SetPlayerHealth)0x47A6D0; //address of SetPlayerHealth native
	SetPlayerHealth_t(amx, params);
	return 1;
}
codectile is offline   Reply With Quote