Raised This Month: $ Target: $400
 0% 

[HELP] Set CT on T radar (and vice-versa)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 04-14-2009 , 02:33   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #1

Quote:
Originally Posted by Emp` View Post
For CTs you can show "hostages" where the Ts are.
For Ts you can show "bombs*" where the CTs are.

* - It was said that only one dropped bomb can be shown on Ts radar, however, if you give more than one bomb to Ts, have them drop the bombs, you can see both bombs on the radar.

O rite wicked
That would be enough i think cos ill probly switch the players team so every1 is on CT and make him see the CTs as theoretical "bomb"'s, and for the CTs make the T a theoretical "hostage"

+k for you toooooo
__________________
minimiller is offline
Send a message via MSN to minimiller
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-05-2010 , 11:27   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #2

Hi, I know this is an old thread, but I have a similiar request.

I would like to add a red and a blue dot to the radar. This should be work for all players.

I have tried to create this feature but the following code is not working. Only the red dot will draw, but only for terrorists.

PHP Code:
public func_draw_on_radar(taskid){
    new 
Float:f_vOrigin[3][3], vOrigin[3][3]

    
pev(g_iEntity[TEAM_T], pev_originf_vOrigin[TEAM_T])
    
pev(g_iEntity[TEAM_CT], pev_originf_vOrigin[TEAM_CT])
    
FVecIVec(f_vOrigin[TEAM_T], vOrigin[TEAM_T])
    
FVecIVec(f_vOrigin[TEAM_CT], vOrigin[TEAM_CT])

    for (new 
id 1id <= g_iMaxPlayersid++){
        if (
is_user_alive(id) && !is_user_bot(id)){

            
// Must be called before we can update the position of the red dot
            
message_begin(MSG_ONEgMsgBombPickup, { 000}, id)
            
message_end()

            
// Draw/Update red dot
            
message_begin(MSG_ONEgMsgBombDrop, { 000}, id)
            
write_coord(vOrigin[TEAM_T][0])
            
write_coord(vOrigin[TEAM_T][1])
            
write_coord(vOrigin[TEAM_T][2])
            
write_byte(0)
            
message_end()

            
// Draw/Update blue dot
            
message_begin(MSG_ONEgMsgHostagePos, { 000}, id)
            
write_byte(0)
            
write_byte(6)
            
write_coord(vOrigin[TEAM_CT][0])
            
write_coord(vOrigin[TEAM_CT][1])
            
write_coord(vOrigin[TEAM_CT][2])
            
message_end()

/*            // Remove blue dot
            message_begin(MSG_ONE, gMsgHostageK, { 0, 0, 0}, id)
            write_byte(6)
            message_end()
*/
        
}
    }

Thanks in advance for any ideas
Leon

Last edited by Leon M.; 05-05-2010 at 13:52. Reason: Code added
Leon M. is offline
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 02:23.


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