Raised This Month: $ Target: $400
 0% 

Show public message to one team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-11-2007 , 01:18   Show public message to one team
Reply With Quote #1

I'm trying to show a hostage death to CT only. The code I tried using will show it to both terrorist and counter-terrorist so I guess if you send the message to one player it will auto send it to all players.

I also tried to block the message but it seems you can't block messages you create in the plugin?

Here is my code:
PHP Code:
new playerCountiplayers[32], team;
get_players(playersplayerCount"ach");
for(
i=0i<playerCounti++)
{
    
team get_pdata_int(players[i], 1145);
    if(
team == 2)
    {
        
message_begin(MSG_ALLget_user_msgid("HostagePos"), {0,0,0}, players[i]);
        
write_byte(1);
        
write_byte(1);
        
write_coord(floatround(entOrigin[0]));
        
write_coord(floatround(entOrigin[1]));
        
write_coord(floatround(entOrigin[2]));
        
message_end();
        
        
message_begin(MSG_ALLget_user_msgid("HostageK"), {0,0,0}, players[i]);
        
write_byte(1);
        
message_end();
    }

hlstriker is offline
 


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 01:17.


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