register_message
i use this code without problem but it changes everybody fovs i need to pu (id,...)but it doesnt work what should i do ?
this works PHP Code:
PHP Code:
|
Re: register_message
This event doesn't return an id, based here.
|
Re: register_message
Even if it accepts an index parameter, you are not really using it, if you need some specific operation (condition for it to run), for example if player is X then set_msg_arg_int( playerIndex, ARG_BYTE, iFov ); then just use get_players for that.
|
Re: register_message
switched that code but i dont think that is a good code, do you have any good idea ?
PHP Code:
|
Re: register_message
Quote:
What FOV angle are you trying to set if it equals 90? |
Re: register_message
Quote:
public Message_SetFOV(MsgId, MsgDest, MsgEntity) { ... } MsgEntity is the player index. But you don't use player index in set_msg_arg/get_msg_arg natives. The first param is the argument index from the message. @OP, to add a condition so you can change fov for only one player use the MsgEntity param and do the check before doing set_msg_arg_int. |
Re: register_message
i made a menu that player could choose their own FoV,i done the menu but have problem there, so i want to set players fov their owv fov value
|
Re: register_message
Quote:
|
| All times are GMT -4. The time now is 04:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.