Raised This Month: $ Target: $400
 0% 

[REQ][L4D] PrintToTeam?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kasper21
Junior Member
Join Date: May 2009
Old 08-08-2009 , 15:34   [REQ][L4D] PrintToTeam?
Reply With Quote #1

hello,

I would like to know how it is possible to broadcast a message for all members of the same team.
kasper21 is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-08-2009 , 17:13   Re: [REQ][L4D] PrintToTeam?
Reply With Quote #2

PHP Code:
for (new 1<= MaxClientsi++)
{
    if (!
IsClientInGame(i))
    {
        continue;
    }
        
    if (
GetClientTeam(i) == TEAM_NUM)
    {
        
PrintToChat(i"Some text");
    }

Where TEAM_NUM is a team index.
3 for infected and 2 for survivors.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-08-2009 , 17:40   Re: [REQ][L4D] PrintToTeam?
Reply With Quote #3

oh sorry, didn't see that it is posted in Requests forum
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 08-09-2009 at 04:59.
exvel is offline
Send a message via ICQ to exvel
kasper21
Junior Member
Join Date: May 2009
Old 08-08-2009 , 21:52   Re: [REQ][L4D] PrintToTeam?
Reply With Quote #4

hello,

great man it works big thx.
kasper21 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 07:48.


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