I was wondering if it's possible transforming the bellow message from c++ to pawn? There must be a way, but how?
Just found this message function in the esf dll, and I wanted to know how to convert it in pawn.
Code:
int CHudExplosion::MsgFunc_Explosion(const char *pszName, int iSize, void *pbuf )
{ BEGIN_READ( pbuf, iSize );
vec3_t vecMiddle;
vecMiddle.x = READ_COORD();
vecMiddle.y = READ_COORD();
vecMiddle.z = READ_COORD();
int radius = READ_LONG();
char r = READ_CHAR();
char g = READ_CHAR();
char b = READ_CHAR();
char a = READ_CHAR();
AddExplosion(vecMiddle, radius, r, g, b, a);
return 1;
}