Raised This Month: $ Target: $400
 0% 

Get a random player in each team.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-08-2014 , 12:04   Re: Get a random player in each team.
Reply With Quote #9

Code:
new Kapitan_CT, Kapitan_TT;
public Losuj_Kapitanow()
{
    new players[32],numCT, numTT
    if(!Kapitan_CTbool)
    {
        get_players(players, numCT, "che", "CT")
        Kapitan_CT=players[random(numCT)]
    }
    if(!Kapitan_TTbool)
    {
        get_players(players, numTT, "che", "TERRORIST")
        Kapitan_TT=players[random(numTT)]
    }
    CountDown()
    if(Czas_Odliczania == 0)
    {
        if(is_user_connected(Kapitan_TT) && get_user_team(Kapitan_TT) == 1 && !Kapitan_TTbool)
        {
            set_hudmessage(255, 0, 0, -1.0, 0.01)
            show_hudmessage(Kapitan_TT, "Wybrano Kapitanow!^nKapitan TT: %s", Kapitan_TT)
            Kapitan_TTbool=true;
        }
        if(is_user_connected(Kapitan_CT) && get_user_team(Kapitan_CT) == 2 && !Kapitan_CTbool)
        {
            set_hudmessage(0, 255, 0, -1.0, 0.01)
            show_hudmessage(Kapitan_CT, "Wybrano Kapitanow!^nKapitan CT: %s", Kapitan_CT)
            Kapitan_CTbool=true;
        }
    }
}
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 01-08-2014 at 12:04.
YamiKaitou is offline
 



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 10:05.


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