Raised This Month: $32 Target: $400
 8% 

[HELP] remember team


Post New Thread Reply   
 
Thread Tools Display Modes
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 03-17-2010 , 00:57   Re: [HELP] remember team
Reply With Quote #11

Hi! I have been trying to implement what the cs_get_user_team but i did not succeed here you leave my code

PHP Code:
public cmd_dmg(id)
{
    if( 
is_user_alive(id) && id != && !allowdmg 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
        
new CsTeams:teamid cs_get_user_teamid )
        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( 
id == player || cs_get_user_teamplayer ) == teamid )
                {
                    continue;
                }

                
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_rhitsnameis_user_aliveplayer ) ? get_user_health(player) : 0)
            }
          }

        
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_dmgis_user_aliveplayer ) ? get_user_health(player) : 0)
        }
        else if(!
checkclient_print(id,print_chat,"",pug_header2,id,"PUG_AUX_NODMG")
    }
    return 
PLUGIN_HANDLED

I have not been able to achieve that i am all players such as could fix it?
flamin is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-23-2010 , 22:29   Re: [HELP] remember team
Reply With Quote #12

I'm pretty sure CsTeams is not a type of variable. Try just doing new teamid= cs_get_user_team(id)
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 07-23-2010 , 22:32   Re: [HELP] remember team
Reply With Quote #13

He's banned kind of pointless to answer now lol
__________________
Peoples Army is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-23-2010 , 22:39   Re: [HELP] remember team
Reply With Quote #14

:O LOL didn't realize.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-23-2010 , 22:55   Re: [HELP] remember team
Reply With Quote #15

Just to clarify, CsTeams is a type of variable when you include cstrike.inc which is the type returned by cs_get_user_team().
__________________
fysiks is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-24-2010 , 02:53   Re: [HELP] remember team
Reply With Quote #16

Yea, just figured that out after searching it up :/
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply


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 22:16.


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