Raised This Month: $ Target: $400
 0% 

id of died player in team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-01-2014 , 20:51   id of died player in team
Reply With Quote #1

when the player is died and he is terrorist then wht will be his Team Name when he is spectating someone..i want to loop msg to all that player who are died in that team which is winner of that round..

PHP Code:
UNASSIGNED 0,
1,
CT 2,
SPECTATOR 
here is my code this works but not for players who died in winning team..
PHP Code:
public Round_End()
{
    static 
textmsg[22];
    
get_msg_arg_string(2textmsg21);
        
    if(
equal(textmsg"#Terrorists_Win"))
    {
        new 
iPlayers[32], iNumplayer
        
get_players(iPlayersiNum"a"); 
        
        for(new 
i<= iNumi++) 
        { 
            
player iPlayers[i]; 
            
            if(
get_user_team(player) == 1
            {
                
here is msg when t wins
            
}
            
            if(
get_user_team(player) == 2)
            {
                
when t wins this msg display to all ct players
            
}
        }
    }
    else if(
equal(textmsg"#CTs_Win"))
    {
        new 
iPlayers[32], iNumplayer
        
get_players(iPlayersiNum"a"); 
        
        for(new 
i<= iNumi++) 
        { 
            
player iPlayers[i]; 
            
            if(
get_user_team(player) == 2
            {
                
// here is msg when ct wins
            
}
            
            if(
get_user_team(player) == 1)
            {
                
// when ct wins this msg display to all terrorist players
            
}
        }
    }
    return 
PLUGIN_CONTINUE;

__________________
All my work is here

Last edited by xxxperts; 01-09-2014 at 03:05. Reason: Sorry Spelling Mistake Was Their
xxxperts 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 10:13.


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