Raised This Month: $ Target: $400
 0% 

problema con codigo hns


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 09-21-2012 , 15:41   Re: problema con codigo hns
#2

PHP Code:
new g_swat[33]
new 
g_terro[33]

public 
Ham_PlayerKilled(victimattackershouldgib)
{
    if (!
is_user_connected(attacker) || victim == attacker)
        return 
HAM_IGNORED
    
    
static PlayersT[32], PlayersCT[32], iNumTiNumCT;
    
    
get_players(PlayersTiNumT"ce""TERRORIST")
    
get_players(PlayersCTiNumCT"ce""CT")
    
    if (
is_user_connected(attacker) || is_user_bot(attacker))
    {
        if (
g_terro[victim])
        {
            if (
cs_get_user_team(victim) == CS_TEAM_T)
                
user_kill(iNumT)
        }
        else if (
g_swat[victim])
        {
            if (
cs_get_user_team(victim) == CS_TEAM_CT)
                
user_kill(iNumCT)
        }
    }
    return 
HAM_IGNORED
}


public 
client_putinserver(plr)
{
    
g_swat[plr] = false
    g_terro
[plr] = false
}

public 
client_putinserver(plr)
{
    
g_swat[plr] = false
    g_terro
[plr] = false
    
    set_task
(1.0"VERHUD"plr+TASK_HNSHUD__"b")
}

public 
client_disconnect(plr)
{
    
g_swat[plr] = false
    g_terro
[plr] = false
}

public 
start_lider_round(id)
{   
    
round false
    liderround 
true
    
    
new Pointers
    Pointers 
get_cvar_pointer("amx_ltm")
    
set_pcvar_num(Pointers0)
    
    new 
players[32], count 
    
    get_players
(playerscount"a")
    
    if (
liderround && count)
    {
        new 
iPlayer players[random(count)]
        
        new 
Name[32]
        
get_user_name(iPlayerNamecharsmax(Name))
        
        if (
cs_get_user_team(iPlayer) == CS_TEAM_CT
            
g_swat[iPlayer] = true
        
        
else if (cs_get_user_team(iPlayer) == CS_TEAM_T)
            
g_terro[iPlayer] = true
        
        set_hudmessage
(23821218, -1.00.206.0200.0)
        
show_hudmessage(id"Modo LIDER ON^n Tu Lider: %s"Name)
    }
    
    for (new 
1<= g_maxplayersi++)
    {
        if (!
is_user_connected(i) || !is_user_alive(i)) continue
        
        
strip_user_weapons(i)
        
give_item(i"weapon_knife")
        
cs_set_weapon_ammo(give_item(i"weapon_m4a1"), 30)
        
cs_set_user_bpammo(iCSW_M4A190)
    }

Por ahi se me escapo algo, fijate xD
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
 



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 20:10.


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