![]() |
Messaging system
Well sending messige is something like taht:
Quote:
|
Re: Messaging system
If you use metamod, you can use the GET_USER_MSG_ID (PLID, "Health", NULL); macro to get the message ID for Health messages.
If you don't use metamod, you have to keep track yourself of who's who, by hooking pfnRegUserMsg() and checking the return values. pfnRegUserMsg() is called by the MOD when the server boots up so that the MOD can register its network messages to the engine ; the engine replies back with a message ID that will be associated to that message name. By hooking this function you can build yourself a table where you'll look up which message ID corresponds to which message name, and vice versa. BTW, learning everything that is to learn in the world is a really nice hobby. Keep it up ;) |
Re: Messaging system
Thanks! I'm using MetaMOD! Well and current step of learning everything is HL SDK. I already know many things, especialy about PCs. :)
And if you know some good MetaMOD coding links, feel free to share... :) |
Re: Messaging system
Oh about good is REAL... Thats a good joke ;)
|
Re: Messaging system
Quote:
|
Re: Messaging system
please stop spamming, though. Consider editing your posts to save space.
|
Re: Messaging system
wouldn't it be simpler to check indexent->v.health if you want to know health rather than intercepting the messages? or pPlayer->v.health or whatever you prefer to call it....
|
Re: Messaging system
he does not want to KNOW the health... he wants to SET it. Nuance :)
|
Re: Messaging system
To change the health of a player, just do this:
pPlayer->v.health = new_heath; but you guys must already know this? |
Re: Messaging system
tsk tsk tsk botmeister...
this is NOT sufficient :) Read the beginning of the post :) *edit* silly me, the explanation lies in another thread... hold on, lemme look it up ...ah, here it is: http://forums.bots-united.com/showthread.php?t=724 |
All times are GMT +2. The time now is 13:34. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.