Raised This Month: $ Target: $400
 0% 

Deathmessage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-06-2010 , 00:40   Re: Deathmessage
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
There are many ways to do this. Easiest would be with get_players or you can loop through all players.
Like this?
PHP Code:
#include <amxmodx>
#include <cstrike>
enum _:TEAMS {
   
TE,
   
CT
};
 
public 
plugin_init()
        
register_message(get_user_msgid("DeathMsg"), "DeathMsg");
 
public 
DeathMsg()
{
        new 
Killer get_msg_arg_int(1), Victim get_msg_arg_int(2);
        new 
iPlayers32 ], iNumTEAMS ];
 
     
get_playersiPlayersiNumCT ], "ae""CT" );    get_playersiPlayersiNumTE ], "ae""TERRORIST" );    
     if( 
iNumTE ] > || iNumCT ] > )
     {
        if ((!
Killer || Killer == Victim) && cs_get_user_team(Victim) == CS_TEAM_CT)
  for(new 
0iNum[TE]; i++)
        {
                
set_msg_arg_int(1ARG_BYTEiPlayers[i]);
        }
     }

edgaras85 is offline
 



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:27.


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