Raised This Month: $ Target: $400
 0% 

recreating from c++ in pawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 12-28-2007 , 19:31   recreating from c++ in pawn
Reply With Quote #1

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;
}
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
Drak
Veteran Member
Join Date: Jul 2005
Old 12-28-2007 , 21:29   Re: recreating from c++ in pawn
Reply With Quote #2

Well.. That's a Message Hook. Which, that should be client-side code. Since a server-side message would be sent to the client, and that function would handle it.
__________________
Oh yeah

Last edited by Drak; 12-30-2007 at 19:30.
Drak is offline
Send a message via MSN to Drak
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 12-30-2007 , 13:47   Re: recreating from c++ in pawn
Reply With Quote #3

thanks for info, I found some things, and I'll try to recreate them in amxmodx as a stock.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode