Raised This Month: $ Target: $400
 0% 

chang team when player was kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-12-2012 , 14:01   chang team when player was kill
Reply With Quote #1

Hello
i need plugin that when player was killing change team Automatically
for example: I'm playing in CT when i killed automatically go to T

any one can write this plugin
thanks all
Pourya is offline
Send a message via Yahoo to Pourya
tigo bitties
Member
Join Date: Sep 2012
Old 10-12-2012 , 14:42   Re: chang team when player was kill
Reply With Quote #2

Try searching "switch teams".
__________________
Here's a list of my >>>plugins<<< that I'm selling. PM me for prices.
I will NOT support any of them.
tigo bitties is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 10-12-2012 , 20:33   Re: chang team when player was kill
Reply With Quote #3

try posting in "Request"
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-15-2012 , 15:12   Re: chang team when player was kill
Reply With Quote #4

i write this plugin but don't work
any one can fix it?

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN    "Auto swap"
#define VERSION    "1.0"
#define AUTHOR    "Admin Olibs"

new iPlayers32 ], iNumiPlayer

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
swap()
}
public 
swap()
{
        
get_playersiPlayersiNum )
        
        for ( new 
0iNumb++ )
        {
            
iPlayer iPlayers];
            if (!
is_user_alive(iPlayer))
            {
            switch ( 
cs_get_user_teamiPlayer ) )
            {
                case 
CS_TEAM_Tcs_set_user_teamiPlayerCS_TEAM_CT )
                case 
CS_TEAM_CTcs_set_user_teamiPlayerCS_TEAM_T )
            }
            }
        }

Pourya is offline
Send a message via Yahoo to Pourya
Old 10-15-2012, 15:24
Torge
This message has been deleted by Torge. Reason: my way isn't very useful..
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-15-2012 , 15:39   Re: chang team when player was kill
Reply With Quote #5

it's work
just when CT is death change go to T
can you fix it?
Pourya is offline
Send a message via Yahoo to Pourya
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 10-15-2012 , 15:54   Re: chang team when player was kill
Reply With Quote #6

Quote:
Originally Posted by Pourya View Post
it's work
just when CT is death change go to T
can you fix it?
PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    
register_event("DeathMsg""event_death""a");
}

public 
event_death()
{
    new 
victim read_data(2);

    if (!
is_user_alive(victim))
        
cs_set_user_team(victim, ( cs_get_user_team(victim) == CS_TEAM_T CS_TEAM_CT CS_TEAM_T ));

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 10-15-2012 at 15:54.
pokemonmaster is offline
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-15-2012 , 16:17   Re: chang team when player was kill
Reply With Quote #7

it's work
but when when 3 player,play together change and when restart round all player go CT or T
for example:
player 1 = T
player 2 = CT
player 3 = CT

Player 1 kill player 2 and player 3 kill player 1
when restart to beginning new round all of them go to CT
Pourya is offline
Send a message via Yahoo to Pourya
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-19-2012 , 13:04   Re: chang team when player was kill
Reply With Quote #8

any one know that why this just transfer CT to T, i think that victim is just CT

PHP Code:
    if (!is_user_alive(victim))
        
cs_set_user_team(victim, ( cs_get_user_team(victim) == CS_TEAM_T CS_TEAM_CT CS_TEAM_T )); 
it just transfer CT to T

any body know that how to create that when T did die go to CT ?
Pourya is offline
Send a message via Yahoo to Pourya
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 13:02.


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