Raised This Month: $ Target: $400
 0% 

team/transfer reviving dead players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-18-2009 , 11:15   team/transfer reviving dead players
Reply With Quote #1

When amx_team or amx_transfer is used on dead player, he gets revived on spawn point of team he's getting transfered to.
__________________

Jack86 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-18-2009 , 18:45   Re: team/transfer reviving dead players
Reply With Quote #2

Is their a problem?
__________________
bmann_420 is offline
necox
Member
Join Date: Feb 2008
Old 07-18-2009 , 21:57   Re: team/transfer reviving dead players
Reply With Quote #3

Quote:
Originally Posted by bmann_420 View Post
Is their a problem?
Yes, Correct this problem, For I do not know English. I could not tell.
__________________
necox is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-19-2009 , 03:35   Re: team/transfer reviving dead players
Reply With Quote #4

Isn't those commands should work like this :
-when transfering alive player, he gets transfered to another team without killing(except for transfering to spec)
-when transfering dead player he gets transfered to another team withour reviving

If that's not intended way of how these commands should work, how can i make them work that way ?
__________________

Jack86 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-19-2009 , 04:35   Re: team/transfer reviving dead players
Reply With Quote #5

This is actually supposed to revive (as far as I know). Just use the menu if you want to transfer dead people and keep them dead.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-19-2009 , 04:57   Re: team/transfer reviving dead players
Reply With Quote #6

I dont have menu plugin 'cause none of my admins use any menu commands.
Can u tell me what to edit here so it will work the way i need ?

PHP Code:
public cmd_transfer(idlevelcid
{
    if (!
cmd_access(idlevelcid2))
    return 
PLUGIN_HANDLED
    
    
new arg1[32], arg2[32]
    
    
read_argv(1arg131)
    
read_argv(2arg231)
    
    new 
player cmd_target(idarg12)
    
    if(!
player)
        return 
PLUGIN_HANDLED
    
    
new teamname[32]
    
    if(!
strlen(arg2))
    {
        
cs_set_user_team(playercs_get_user_team(player) == CS_TEAM_CT CS_TEAM_T:CS_TEAM_CT)
        
teamname cs_get_user_team(player) == CS_TEAM_CT "Counter-Terrorists":"Terrorists"
    
}
    else
    {
        if(
equali(arg2"T"))
        {
            
cs_set_user_team(playerCS_TEAM_T)
            
teamname "Terrorists"
            
fm_DispatchSpawn(player)
        }
        else if(
equali(arg2"CT"))
        {
            
cs_set_user_team(playerCS_TEAM_CT)
            
teamname "Counter-Terrorists"
            
fm_DispatchSpawn(player)
        }
        else if(
equali(arg2"SPEC"))
        {
            
user_silentkill(player)
            
cs_set_user_team(playerCS_TEAM_SPECTATOR)
            
            
teamname "Spectator"
        
}
        else
        {
            
client_print(idprint_console"%L"LANG_PLAYERAMX_SUPER_TEAM_INVALID)
            return 
PLUGIN_HANDLED
        
}
    }
    
    new 
name[32], admin[32], authid[35]
    
    
get_user_name(idadmin31)
    
get_user_name(playername31)
    
    
get_user_authid(idauthid34)
    
    switch(
get_pcvar_num(amx_show_activity)) 
    {
        case 
2:    client_print(0print_chat"%L"LANG_PLAYER"AMX_SUPER_TRANSFER_PLAYER_CASE2"adminnameteamname)
        case 
1:    client_print(0print_chat"%L"LANG_PLAYER"AMX_SUPER_TRANSFER_PLAYER_CASE1"nameteamname)
    }

    
client_print(playerprint_chat"%L"LANG_PLAYER"AMX_SUPER_TRANSFER_PLAYER_TEAM"teamname)

    
console_print(id"%L"LANG_PLAYER"AMX_SUPER_TRANSFER_PLAYER_CONSOLE"nameteamname)
    
log_amx("%L"LANG_SERVER"AMX_SUPER_TRANSFER_PLAYER_LOG"adminauthidnameteamname)
    return 
PLUGIN_HANDLED

__________________

Jack86 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-19-2009 , 16:44   Re: team/transfer reviving dead players
Reply With Quote #7

amxmodmenu

Im not going to re-code an entire plugin when you have the feature already, or your admins are to lazy, sorry.
__________________
bmann_420 is offline
Reply



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


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