Raised This Month: $ Target: $400
 0% 

damage team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 03-12-2010 , 22:05   damage team
Reply With Quote #1

Hi! They explain the best possible, i use YET ANOTHER PUG and i'm trying when you run the command .dmg i show all the players that are the team contrary, since they are currently only shows to the player that you have caused damage, but what i want to perform is that i show throughout the team like ESEA i have this code that apparently was done for this:

PHP Code:
 new iPlayers[32]
    new 
iNum
    
new plrid
    
    get_players
iPlayersiNum )
    
    static 
name[32]
    static 
message[108]
    
    new 
CsTeams:idteam cs_get_user_teamid )
    
    for( new 
0iNumi++ )
    {
        
plrid iPlayers[i]
        
        if( 
id == plrid || cs_get_user_teamplrid ) == idteam )
        {
            continue;
        }
        
        
get_user_nameplridname31 
Now what i need is to implement this code in my code that is this:

PHP Code:
public cmd_dmg(id)
{
    if( 
is_user_alive(id) && id != && !b_CanTypeWhileAlive pug_msg_tmp_empty(id,"PUG_CMD_NOTALLOWED");
    else
    {
        static 
Players[32], name[32]
        new 
playerCountiplayer
        get_players
(PlayersplayerCount"ch")

        new 
tmp_hitstmp_dmgtmp_rhitstmp_rdmgcheck
        
for (i=0i<playerCounti++)
        {
            
player Players[i]
            
tmp_hits pug_hits[id][player]
            
tmp_rhits pug_hits[player][id]

            if( 
tmp_hits || tmp_rhits )
            {
                
check 1
                tmp_dmg 
pug_dmg[id][player]
                
tmp_rdmg pug_dmg[player][id]

                if(
player == idclient_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_DMG_SELF",tmp_dmg,tmp_hits)
                else
                {
                    
get_user_name(player,name31)
                    
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_DMG",tmp_dmg,tmp_hits,tmp_rdmg,tmp_rhitsname)
                }
            }
          }

        
tmp_hits pug_hits[id][0]
        
tmp_rhits pug_hits[0][id]
        if( 
tmp_hits || tmp_rhits )
        {
            
tmp_dmg pug_dmg[id][0]
            
tmp_rdmg pug_dmg[0][id]
            
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_DMG","WorldSpawn",tmp_hits,tmp_dmg)
        }
        else if(!
checkclient_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_NODMG")
    }
    return 
PLUGIN_CONTINUE;

I have tried to do so, but to compile i got error, What i want to help me ordered in my code and well-functioning can help please?
flamin 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 08:37.


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