Raised This Month: $ Target: $400
 0% 

The last players of the 2 teams !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cool
New Member
Join Date: Jun 2012
Old 08-31-2012 , 17:48   The last players of the 2 teams !
Reply With Quote #1

Hi,

I need a code in which the last remaining player of both teams to receive a different power set by me.

Thank you !

Sorry for my english.
Cool is offline
UnknownMP
Junior Member
Join Date: Aug 2012
Old 08-31-2012 , 17:49   Re: The last players of the 2 teams !
Reply With Quote #2

What you mean with power?
Do you want a command or what?
UnknownMP is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2012 , 17:54   Re: The last players of the 2 teams !
Reply With Quote #3

Imagine there is 1 T and 1 CT left, T has planted the bomb, CT kill T, so CT is the last player, but then he doesn't have the time to defuse the bomb, so round is won by Ts, you still want to give a power to the CT ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Cool
New Member
Join Date: Jun 2012
Old 08-31-2012 , 17:55   Re: The last players of the 2 teams !
Reply With Quote #4

No, I have a source but this source doesn't work. This plugin is for Furien Mode.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike> 
#include <fun>

#pragma semicolon 1;

public plugin_init() 
{

    
register_plugin("Kage vs Psycho""1.0""danuzzk"); 
    
register_event("DeathMsg""kage_vs_psycho""a");
    

}

public 
kage_vs_psycho() 
{

    new 
maxplayers get_maxplayers();

    new 
af[32], f[32], antifurien;
    new 
team;

    for (new 
1<= maxplayersi++)
    {
        if (!
is_user_connected(i) || !is_user_alive(i))
            return -
1;
    

        
team get_user_team(i);
    
        if(
team == 1)
        {
            
f[furien++] = i;
        }
    
        else 
    
        if(
team == 2)
        {
            
af[anti++] = i;
        }
        
        
        if (
furien == 1)
        { 
            
set_user_health(f[0], 300);
            
set_user_armor(f[0], 300);

            
set_user_rendering(f[0], kRenderFxGlowShell000kRenderTransAlpha0);

            
client_print(0print_chat "The last player from t is now Psycho - He has 300HP, 300AP");
        }
        
        if (
anti == 1)
        {
            
set_user_health(af[0], 300);
            
set_user_armor(af[0], 300);

            
give_item(af[0], "item_assaultsuit");
            
give_item(af[0], "item_thighpack");

            
set_user_rendering(af[0], kRenderFxGlowShell000kRenderTransAlpha0);

            
client_print(0print_chat "The last player from ct is now Kage - He has 300HP, 300AP ");
        }
        
    }
    
    return 
1;


Last edited by Cool; 08-31-2012 at 17:56.
Cool is offline
UnknownMP
Junior Member
Join Date: Aug 2012
Old 08-31-2012 , 18:14   Re: The last players of the 2 teams !
Reply With Quote #5

Here you go!
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike> 
#include <fun>
#include <furien>

#pragma semicolon 1;

public plugin_init() 
{

    
register_plugin("Kage vs Psycho""1.0""danuzzk"); 
    
register_event("DeathMsg""kage_vs_psycho""a");
    

}

public 
kage_vs_psycho(id
{
    
    new 
players[32], numplayer;
    
get_playersplayersnum"a" );
    for( new 
0numi++ )
    {
        
player players[i];
        switch( 
furien_get_user_teamplayer ) )
        {
            case 
Furien:
            {
                
set_user_health(player300);
                
set_user_armor(player300);
                
set_user_rendering(playerkRenderFxGlowShell000kRenderTransAlpha0);
                
client_print(0print_chat "The last player from the furien team is now Psycho - He has primit 300HP, 300AP");
            }
            case 
AntiFurien:
            {
                
set_user_health(player300);
                
set_user_armor(player300);
                
give_item(player"item_assaultsuit");
                
give_item(player"item_thighpack");
                
set_user_rendering(playerkRenderFxGlowShell000kRenderTransAlpha0);
                
client_print(0print_chat "The last player from ct is now Kage - He has 300HP, 300AP ");
            }
        }
        }

UnknownMP is offline
UnknownMP
Junior Member
Join Date: Aug 2012
Old 08-31-2012 , 18:24   Re: The last players of the 2 teams !
Reply With Quote #6

Does it work?
UnknownMP is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2012 , 18:40   Re: The last players of the 2 teams !
Reply With Quote #7

He never asked the plugin for a special mod.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Cool
New Member
Join Date: Jun 2012
Old 09-01-2012 , 06:00   Re: The last players of the 2 teams !
Reply With Quote #8

Doesn't work. I don't know why but it don't load.

Last edited by Cool; 09-01-2012 at 06:00.
Cool is offline
UnknownMP
Junior Member
Join Date: Aug 2012
Old 09-01-2012 , 06:35   Re: The last players of the 2 teams !
Reply With Quote #9

Quote:
Originally Posted by Cool View Post
This plugin is for Furien Mode.
The teams in furien are alternated so you need the furien.inc to compile it and you must have all furien plugins running.
UnknownMP 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 08:11.


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