Raised This Month: $ Target: $400
 0% 

[HELP] Player team-name HL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 02-01-2010 , 16:15   [HELP] Player team-name HL
Reply With Quote #1

I want to restore a player from observer (spectator) mode, but i have to send a message to all players with his team-name in. get_user_team not provide the team-name when player is in observer mode. Can you fix my function?

PHP Code:
const m_iHideHUD        296;
//...
public StopObserver(iPlayer){
    if(
pev(iPlayer,pev_iuser1) || pev(iPlayer,pev_iuser2))
    {
        
set_pev(iPlayer,pev_iuser1,0)
        
set_pev(iPlayer,pev_iuser2,0)
        
set_pdata_int(iPlayer,m_iHideHUD,0)
        new 
sModel[32];
        
//??
        
message_begin(MSG_ALL,get_user_msgid("TeamInfo"))
        
write_byte(iPlayer)
        
write_string(sModel)
        
message_end()
    }

__________________
- blupi blupi
ujjl is offline
Reply


Thread Tools
Display Modes

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 07:25.


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