AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need a code (https://forums.alliedmods.net/showthread.php?t=117400)

mininova 01-31-2010 18:05

I need a code
 
Hello

I tried several things but I never went out. What I try is to make a command so that only they can enter "X" amount of terrorists and the rest of CT. Plugins saw who did it but need a code to add to what I'm doing.


From already thank you very much.

wrecked_ 01-31-2010 18:39

Re: I need a code
 
Team Limiter by Exolent

mininova 01-31-2010 21:22

Re: I need a code
 
Quote:

Originally Posted by wrecked_ (Post 1074514)

Thanks. but i need a code for add in my plugin.

Exolent[jNr] 01-31-2010 23:40

Re: I need a code
 
You can't add code from another plugin to your own?

mininova 02-01-2010 00:51

Re: I need a code
 
Quote:

Originally Posted by Exolent[jNr] (Post 1074726)
You can't add code from another plugin to your own?

Yes, but in understand much codes.

benamo6 02-03-2010 07:23

Re: I need a code
 
Are you searching for a code that get how many players by a cvar can join terrorist and then players left join cts?

mininova 02-03-2010 07:29

Re: I need a code
 
Quote:

Originally Posted by benamo6 (Post 1076965)
Are you searching for a code that get how many players by a cvar can join terrorist and then players left join cts?

Yes, I find several codes but i understand for made.

Seta00 02-03-2010 10:17

Re: I need a code
 
You should really get a dictionary instead of Google Translating, it will help us a lot.

mininova 02-03-2010 16:08

Re: I need a code
 
See
PHP Code:

#include < amxmodx >
#include < amxmisc >
#include < cstrike >

public plugin_init( ) {
    
register_event"HLTV""EventNewRound""a""1=0""2=0" );
}

public 
EventNewRound( ) {
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum );
    
    new 
iRandomIndex randomiNum );
    for( new 
0iNumi++ ) {
        
cs_set_user_teamiPlayers], ( == iRandomIndex ) ? CS_TEAM_T CS_TEAM_CT );
    }


This code make exolent on other post.

Since I do in order that it works only in the first round?

BannedUser! 02-03-2010 16:58

Re: I need a code
 
Quote:

Originally Posted by mininova (Post 1077502)
See
PHP Code:

#include < amxmodx >
#include < amxmisc >
#include < cstrike >

public plugin_init( ) {
    
register_event"HLTV""EventNewRound""a""1=0""2=0" );
}

public 
EventNewRound( ) {
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum );
    
    new 
iRandomIndex randomiNum );
    for( new 
0iNumi++ ) {
        
cs_set_user_teamiPlayers], ( == iRandomIndex ) ? CS_TEAM_T CS_TEAM_CT );
    }


This code make exolent on other post.

Since I do in order that it works only in the first round?

Test.


All times are GMT -4. The time now is 07:18.

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