Raised This Month: $ Target: $400
 0% 

set random T > ct


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-13-2009 , 07:20   set random T > ct
Reply With Quote #1

tittle
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-13-2009 , 07:32   Re: set random T > ct
Reply With Quote #2

Quote:
Originally Posted by One View Post
tittle
But the title isn't understandable.
SnoW is offline
Send a message via MSN to SnoW
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-13-2009 , 07:34   Re: set random T > ct
Reply With Quote #3

And you also double posted..
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-13-2009 , 07:34   Re: set random T > ct
Reply With Quote #4

Check how deathrun manager works.
__________________
xPaw is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-13-2009 , 07:47   Re: set random T > ct
Reply With Quote #5

Quote:
Originally Posted by SnoW View Post
But the title isn't understandable.
the tittle is understandable. set random T to CT? idk what you can't understand.
Quote:
Originally Posted by ot_207 View Post
And you also double posted..
sry server error
Quote:
Originally Posted by xPaw View Post
Check how deathrun manager works.
ty xpaw.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-13-2009 , 08:06   Re: set random T > ct
Reply With Quote #6

Quote:
Originally Posted by One View Post
the tittle is understandable. set random T to CT? idk what you can't understand.
For me it means that random Terrorist team is bigger than Counter-terrorist team. Which indicates to a value how many players are in each team.
SnoW is offline
Send a message via MSN to SnoW
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-13-2009 , 08:16   Re: set random T > ct
Reply With Quote #7

i need to know how to catch random player.

i'll do it after 5 users are on the server.
if(get_max_players() >= 5)
cs_set_user_team(randomt,cs_team_t)

somthing like this.xpaw's code is realy easy. i think i can do it
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-13-2009 , 10:54   Re: set random T > ct
Reply With Quote #8

Quote:
Originally Posted by SnoW View Post
For me it means that random Terrorist team is bigger than Counter-terrorist team. Which indicates to a value how many players are in each team.
Thought the same.

@One: get_players(players, num) new randomPlayer = players[random(num)]

By the way, it's get_maxplayers(), not get_max_players().
vitorrd is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-13-2009 , 11:34   Re: set random T > ct
Reply With Quote #9

Quote:
Originally Posted by vitorrd View Post
Thought the same.

@One: get_players(players, num) new randomPlayer = players[random(num)]

By the way, it's get_maxplayers(), not get_max_players().
ty, i was @ work & just writed anything


huh ?

PHP Code:
/********************************************************************************************
*********************************** Versteck dich *******************************************
*********************************************************************************************






*********************************************************************************************/
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

new g_MaxPlayers
new g_start_mod
new g_first_round
new g_alive_users
new iRandomPlayerCsTeams:iTeam
new iPlayers32 ],iNum,iPlayer

public plugin_init() 
{
    
register_plugin("Versteck dich""1.0""Dr.One")
    
register_logevent("EventRoundStart"2"1=Round_Start");
    
g_MaxPlayers get_maxplayers()
}
public 
EventRoundStart()
{
    
    while( ( 
iRandomPlayer iPlayersrandom_num0iNum ) ] ) == iRandomPlayer ) { }

    for( new 
0<=  g_MaxPlayersi++)
    {
        if(
is_user_alive(i))
        {
            
g_alive_users++
        }
    }
    if(
g_alive_users >= 3)
    {
        
start_game()
        
g_first_round 1
    
}
}
public 
start_game()
{
    if(
g_first_round == && g_alive_users >= && g_alive_users <= 10)
    {
        
cs_set_user_team(iRandomPlayerCS_TEAM_T);
    }

is this ok so ?
__________________

Last edited by One; 10-13-2009 at 11:40.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-13-2009 , 11:51   Re: set random T > ct
Reply With Quote #10

rofl.
__________________
xPaw 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 22:42.


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