cant get +attack and +attack2
hi,
why cant i get +attack and +attack2??? i mean like this: Code:
|
You can't because these are executed client side. The client sends a code rather than the whole command to the server (because these buttons are pressed often).
To execute a function when a player presses attack, i think this should work: Code:
That could work (not tested) :) get_user_button and IN_ATTACK are defined in engine_stocks.inc and engine_const.inc, so you only have to #include <engine>. PS: I don't use get_user_oldbutton because it acted weird for me |
thx, now i have a other prob:
i would like to render someone, but ir should be visible to only one player but when i use the function i become an error(look at the attachement) Code:
P.S:i used set_rendering , because set_user_rendering mades the same error LG Green |
What do you want to render?
message_begin( MSG_ONE, SVC_TEMPENTITY,origin[idt],id) => this starts a tempentity message. Then you have to use the write_* functions to specify the type and the parameters. You don't specify a type so you get the error :) All types and parameters are listed in the Multiplayer Source/common/const.h file in the HLSdk. |
i would like to render the players in the same team with white, and the players on the enemy team in red, but it should be only visible to one player
|
Quote:
|
I think (noob, too) that he used the for (i=0; i<32; ++i) and [i] to let this check all possible users on the server
|
ouch hooking serverframe and checking each player every frame is really going to hurt your cpu ;)
|
what else should i do dopefish? It could be done in a module, but it isnt in any std module, so i need to hook serverframe..
[i] : for arrays, look into small doc :D (www.compuphase.com somewhere) |
Quote:
|
| All times are GMT -4. The time now is 14:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.