Raised This Month: $ Target: $400
 0% 

FURIEN.c.la Version Courante v0.4.4 (24juin2010)


Post New Thread Reply   
 
Thread Tools Display Modes
wallhacker0
Member
Join Date: Sep 2010
Old 12-23-2010 , 15:59   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #281

[ENGLISH] I have tried a plugin with the next function: when the cts have lost X rounds in a row, the server switch teams. But my problem is the next: when I plant the c4 and I dead, the cts wins even if they don't defuse. This is the code:

[FRENCH] J'ai essayé un plugin avec la fonction proche: quand le cts il a perdu X rondes à une file, le server équipes de changement. Mais mon problème est le proche: quand je plante le c4 et je mort, le cts il gagne même si ils don't defuse. Ceci est le code:

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

#define PLUGIN "Switch Teams"
#define VERSION "1.0"
#define AUTHOR "wallhacker0"

new gCvarSwitch;


new 
gSwitch;
new 
gRound;
new 
gMaxPlayers;


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
gCvarSwitch register_cvar("furien_switch""4")
    
        
    
gMaxPlayers get_maxplayers();
    
gSwitch get_pcvar_num(gCvarSwitch)
    
    
    
register_logevent("eventStartRound",2,"0=World triggered""1=Round_Start");
    
register_logevent("eventEndRound"  ,2,"0=World triggered""1=Round_Draw""1=Round_End");
    
register_event("HLTV""eventNewRound""a""1=0""2=0");
}


public 
eventStartRound()
{
    if(
gRound == || !PlayersInBothTeams())
        return 
PLUGIN_CONTINUE;
        
            
    return 
PLUGIN_CONTINUE;
}

public 
eventNewRound()
{    
    if(
gRound == 0)
        
    
gRound++
    return 
PLUGIN_CONTINUE;
}

PlayersInBothTeams()
{
    new 
Count;
    
    for(new 
1<= gMaxPlayersi++)
    {
        if(
get_user_team(i) == 1
            
Count 1
            
        
if(get_user_team(i) == 2)
            
Count 2
            
        
if(Count == 2)
            return 
1;
    }
    
    return 
0;
}

public 
eventEndRound()
{
    if(
gRound == 0)
        return 
PLUGIN_CONTINUE;
        
    
        
    switch(
GetWinningTeam())
    {
        case 
1TTs wins
        
{            
            
            
gSwitch--;
            
        }
        
        case 
2:  CTs wins
        
{
                
            
SwapTeams();
            
gSwitch get_pcvar_num(gCvarSwitch)
            
        }
        
        case 
3The CTs have lost X rounds
        
{
                        
                
            
SwapTeams();            
            
gSwitch get_pcvar_num(gCvarSwitch)            
            
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

SwapTeams()
{
    for(new 
1<= gMaxPlayersi++)
    {
        switch(
get_user_team(i))
        {
            case 
1cs_set_user_team(i2)
            case 
2cs_set_user_team(i1)
        }
    }
}

GetWinningTeam()
{
    new 
WinId;
    
    for(new 
1<= gMaxPlayersi++) 
    {
        if(
is_user_alive(i) && get_user_team(i) == 1)
        {
            
WinId 1;
            
            if(
get_pcvar_num(gCvarSwitch) && gSwitch <= 0)
                
WinId 3
            
            
return WinId;
        }
        
        else if(
is_user_alive(i) && get_user_team(i) == 2)
            
WinId 2;
    }
    
    return 
WinId;

Thanks and I wait an answer.

P.D: Sorry for my bad english and french.
__________________
wallhacker0 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-23-2010 , 16:29   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #282

Code:
// Switch des teams quand les anti-furiens gagnent
// 0 ou 1

SWITCH_TEAMS 1
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wallhacker0
Member
Join Date: Sep 2010
Old 12-24-2010 , 07:32   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #283

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
// Switch des teams quand les anti-furiens gagnent
// 0 ou 1

SWITCH_TEAMS 1
Is it for me??
__________________
wallhacker0 is offline
trasheurs
Junior Member
Join Date: Apr 2005
Old 12-24-2010 , 15:30   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #284

salut, je voudrais savoir quoi changer dans le sma furien pour que les furiens puissent se traverser sans se gener et que les ct puisse avoir le menu normal de cs ?


Merci d'avance
__________________
Cstrike & Czero
LINTEX-FURIEN MOD Server
46.4.34.196:27285
http://www.clanswimmers.com
trasheurs is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2010 , 15:48   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #285

1. Pas possible, il faudra un plugin supplémentaire.
2. Tu parles du menu d'achats ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
trasheurs
Junior Member
Join Date: Apr 2005
Old 12-24-2010 , 16:07   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #286

ok pour ma premiere question, la 2 eme oui le menu normal pour les ct et apres hors zone d'achat n'avoir que le shop

Sinon pour la premiere question:

Adapter ce plugin que pour les terros, apparement c'est ce que je recherche non ?

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

new const VERSION[] = "0.7.0"

const MAX_PLAYERS 32

new g_iPlayers[MAX_PLAYERS], g_iNumg_iPlayeri
new const g_szAliveFlags[] = "a"
#define RefreshPlayersList()    get_players(g_iPlayers, g_iNum, g_szAliveFlags)

public plugin_init()
{
    
register_plugin("Semiclip"VERSION"ConnorMcLeod")

    
register_forward(FM_AddToFullPack"FM_client_AddToFullPack_Post"1)

    
RegisterHam(Ham_Player_PreThink"player""Ham_CBasePlayer_PreThink_Post"1)
}

public 
FM_client_AddToFullPack_Post(eseiEntidhostflagsplayerpSet)
{
    if( 
player && id != iEnt && get_orig_retval() && is_user_alive(id) )
    {
        
set_es(esES_SolidSOLID_NOT)

        static 
Float:flDistance
        flDistance 
entity_range(idiEnt)
        if( 
flDistance 512.0 )
        {
            
set_es(esES_RenderModekRenderTransAlpha)
            
set_es(esES_RenderAmtfloatround(flDistance)/2)
        }
    }
}

public 
Ham_CBasePlayer_PreThink_Post(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
id != g_iPlayer )
        {
            
set_pev(g_iPlayerpev_solidSOLID_NOT)
        }
    }
}

public 
client_PostThink(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
g_iPlayer != id )
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
        }
    }

__________________
Cstrike & Czero
LINTEX-FURIEN MOD Server
46.4.34.196:27285
http://www.clanswimmers.com
trasheurs is offline
trasheurs
Junior Member
Join Date: Apr 2005
Old 01-03-2011 , 13:39   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #287

Salut, je reviens sur ma demande plus haut, je dois changer quel cvar dans le furien.sma connor pour avoir l'ancien menu mais que coter CT stp ?
__________________
Cstrike & Czero
LINTEX-FURIEN MOD Server
46.4.34.196:27285
http://www.clanswimmers.com
trasheurs is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-08-2011 , 09:50   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #288

Posts moved by arkshine, requested by me.

For any other language than french :
Furien Other Languages Support Thread
__________________
- tired and retired -

- my plugins -

Last edited by Arkshine; 01-08-2011 at 10:13.
ConnorMcLeod is offline
Warior
New Member
Join Date: Jan 2011
Old 01-10-2011 , 11:48   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #289

[ENGLISH] Hello all can you give me the plugins to give 200 hp has all the teams terrorist and terrorism as well as to regenerate between team with key use.
Thank you in advance

[Français]Bonjour a tous pouvez vous me donner les plugins permettant de donner 200 hp a toute les teams terroriste et antiterroriste ainsi que de pouvoir se régénérer entre team avec la touche use.
Merci d'avance
Warior is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-10-2011 , 11:57   Re: FURIEN.c.la Version Courante v0.4.4 (24juin2010)
Reply With Quote #290

Il n'y a pas de rapport avec le mod furien, tu dois chercher sur le forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 09:07.


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