Quantcast
Channel: Forum VeryGames
Viewing all articles
Browse latest Browse all 5196

[DEMANDE] Redemarrer le round si 1 joueur en vie (2)

$
0
0
je refait un topic, car l'ancien est partie en cacahuète,
J'ai biens mis ce que Krix m'a dit,

Voici ce qu'il y a dans mon .sp

Code PHP:

#include <cstrike>

public OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeath);
}

public 
Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
iPlayerAlive GetPlayerAlive();
    
    if(
iPlayerAlive == 1)
    {
        
// Changer l'argument 2, je te l'est mis en exemple
        
CS_TerminateRound(5.0CSRoundEnd_TerroristWintrue);
    }
}

stock GetPlayerAlive()
{
    new 
count;
    for(new 
i=1;i<=MaxClients;i++)
    {
        if(
IsClientInGame(i) && GetClientTeam(i) > && IsPlayerAlive(i))
        {
            
count++;
        }
    }
    return 
count;


Il y a des bots sur mon serveurs, quand je place des bots en CT, puis je les tuent, quand ils sont tous morts, le round redemarre. Comment faire pour qu'il ne redemarre que quand il y a 1 joueur en vie? Ai-je mal compiler ou autre? car dans sm plugins je vois bien le plugin d'afficher

Viewing all articles
Browse latest Browse all 5196

Trending Articles


FORECLOSURE OF REAL ESTATE MORTGAGE


Sapos para colorear


Tagalog Quotes About Crush – Tagalog Love Quotes


OFW quotes : Pinoy Tagalog Quotes


Long Distance Relationship Tagalog Love Quotes


Tagalog Quotes To Move on and More Love Love Love Quotes


BARKADA TAGALOG QUOTES


Best Crush Tagalog Quotes And Sayings 2017


Vimeo 10.7.0 by Vimeo.com, Inc.


Girasoles para colorear


mayabang Quotes, Torpe Quotes, tanga Quotes


Break up Quotes Tagalog Love Quote – Broken Hearted Quotes Tagalog


Patama Quotes : Tagalog Inspirational Quotes


Pamatay na Banat and Mga Patama Love Quotes


5 Tagalog Relationship Rules


INUMAN QUOTES


Re:Mutton Pies (lleechef)


Vimeo 10.7.1 by Vimeo.com, Inc.