Raised This Month: $ Target: $400
 0% 

How to add an Entity to the player Radar ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-12-2011 , 02:30   How to add an Entity to the player Radar ?
Reply With Quote #1

How to add an entity to player radar. ?
Like this:

Last edited by dias; 04-12-2011 at 02:33.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 04-12-2011 , 06:51   Re: How to add an Entity to the player Radar ?
Reply With Quote #2

For CT's: Send the HostagePos and HostageK messages.
(Note: It blinks for 2 seconds then goes away)

For T's: Send the BombDrop message.
I personally haven't used this message but should be somewhat similar.
__________________
It's a mystery.
Mini_Midget is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-12-2011 , 09:06   Re: How to add an Entity to the player Radar ?
Reply With Quote #3

What about for both ?.
Can you make an example code please ?

Last edited by dias; 04-12-2011 at 09:14.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-13-2011 , 02:20   Re: How to add an Entity to the player Radar ?
Reply With Quote #4

HostagePos and HostageK works for both teams.

Example code:
Code:
        message_begin(MSG_BROADCAST, gMsg_HostagePos)
        write_byte(0)
        write_byte(DotID)
        write_coord(iOrigin[0])
        write_coord(iOrigin[1])
        write_coord(iOrigin[2])
        message_end()

        message_begin(MSG_BROADCAST, gMsg_HostageK)
        write_byte(DotID)
        message_end()
Assign and replace variables accordingly.
__________________

Last edited by Hunter-Digital; 04-13-2011 at 02:23.
Hunter-Digital is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2011 , 03:57   Re: How to add an Entity to the player Radar ?
Reply With Quote #5

Use HostagePos only when you initialize the thing, and send HostageK every 2.0 seconds.
If the entity is moving, then send again HostagePos.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-13-2011 , 06:15   Re: How to add an Entity to the player Radar ?
Reply With Quote #6

Oh. Thanks You so much . Now i understand about this
@Hunter-Digital:
- Is iOrigin is the origin of the Entity ?

Last edited by dias; 04-13-2011 at 08:52.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 04-13-2011 , 09:16   Re: How to add an Entity to the player Radar ?
Reply With Quote #7

Yes.
__________________
It's a mystery.
Mini_Midget is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-13-2011 , 09:29   Re: How to add an Entity to the player Radar ?
Reply With Quote #8

Oh Thank

Last edited by dias; 04-13-2011 at 09:39.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
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 19:56.


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