Raised This Month: $51 Target: $400
 12% 

print a message for a team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 07-14-2017 , 16:16   print a message for a team
Reply With Quote #1

Hi.
when someone planting the bomb , i was message & sound appear only for terrorists, seriously i don't know how, i tried many times but nothing
I'm still learning...

PHP Code:
public bomb_plantingid )
{
    new 
name[32], ran;
    
get_user_name(idnamecharsmax(name))
    
    
ran random_num(1)
        
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        
client_print(idprint_chat"%s (RADIO): I'm planting the bomb"name)
        switch(
ran)
        {
            case 
0client_cmd(id"spk csgo/radio/elite/plantingbomb01.wav")
            case 
1client_cmd(id"spk csgo/radio/elite/plantingbomb02.wav")
        }
    }

__________________

Last edited by Ayman Khaled; 07-14-2017 at 16:22.
Ayman Khaled is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-14-2017 , 16:24   Re: print a message for a team
Reply With Quote #2

You will need to loop through the players, then show the message.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 07-14-2017 , 16:25   Re: print a message for a team
Reply With Quote #3

can you give me an example ?
__________________
Ayman Khaled is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-14-2017 , 16:31   Re: print a message for a team
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=208331
__________________








CrazY. is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-14-2017 , 16:39   Re: print a message for a team
Reply With Quote #5

Read this

PHP Code:
    new player32 ], countnew_indexi
    get_players
playercount )  
    for( 
0counti++ )
    {
        
new_index player];
        if( 
cs_get_user_teamnew_index ) == CS_TEAM_T )
        {
            
//show your meessage
        
}
    } 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 05:51.


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