Raised This Month: $ Target: $400
 0% 

PunkServer Easy Mix - REWRITEN


Post New Thread Reply   
 
Thread Tools Display Modes
OffspringBR
Junior Member
Join Date: Jul 2008
Location: Brazil
Old 10-15-2008 , 18:35   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #11

Quote:
Originally Posted by tmen_13 View Post
tem bug o plugin, quando faço sortear equipas, nao sorteia equilibrado (5vs5), sorteia 7v3 por exemplo.

podia adicionar a opçao para desactivar o am, exepto o este plugin

Translating:

He said that the plugin has a bug on the Sort Team, that it does not sort EQUAL teams...

Firts, it is not a bug... cause it doenst crash anything, but if you want to help me, see the ALGORITIM at SortTeam function...

I guess it is alright... it sort the player to a random team and it will count how many players that were sorted ... if the number of players in this team is = half of the Players Connected and Playin' it will send the next to the other team...

Someone help me, cause I donnno whats wrong!

Thx!
OffspringBR is offline
Send a message via MSN to OffspringBR
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 10-15-2008 , 18:48   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #12

Quote:
Originally Posted by OffspringBR View Post
Translating:

He said that the plugin has a bug on the Sort Team, that it does not sort EQUAL teams...

Firts, it is not a bug... cause it doenst crash anything, but if you want to help me, see the ALGORITIM at SortTeam function...

I guess it is alright... it sort the player to a random team and it will count how many players that were sorted ... if the number of players in this team is = half of the Players Connected and Playin' it will send the next to the other team...

Someone help me, cause I donnno whats wrong!

Thx!
Actually the definition of bug includes any undesired behavior, with different severity of effects.

Try this for the player sorting.
PHP Code:
SortTeams()
{
    new 
iPlayers[32], iMaxPlayers get_maxplayers()
    new 
iPlayersNum 10 // replace this with a cvar that states how much players we need for the mix
    
    
new iPlayeriPlayerCount 
    
// Get all ready players and their points
    
for(i=1=< iMaxPlayers;i++)
    {
        if(
iPlayerCount >= iPlayersNum)
            break

        if(
is_user_connected(i))
            
iPlayers[iPlayerCount++] = i
    
}

    new 
iTeamPlayers[2][16], iTeamCount[2]
    new 
iTeamMax iPlayersNum 2
    
new iTeam 0
    
    
// Do a random sorting, no balance is done
    
for(new i=0iPlayersNum;i++)
    {
        
iPlayer iPlayers[i]
        
iTeam random_num(01)
        if(
iTeamCount[iTeam] >= iTeamMax)
        {
            
iTeam ^= 1
            
            
if(iTeamCount[iTeam] >= iTeamMax)
               break
        }
        
        
iTeamPlayers[iTeam][iTeamCount[iTeam]++] = iPlayer
    
}

    new 
CsTeams:iTeam1 random_num(01) ? CS_TEAM_T :CS_TEAM_CT
    
new CsTeams:iTeam2 = (iTeam1 == CS_TEAM_T CS_TEAM_CT CS_TEAM_T)
    
    for(new 
i=0iTeamMax;i++)
    {
        
iPlayer iTeamPlayers[0][i]
        if(
is_user_connected(iPlayer))
            
cs_set_user_team(iPlayeriTeam1)
        
        
iPlayer iTeamPlayers[1][i]
        if(
is_user_connected(iPlayer))
            
cs_set_user_team(iPlayeriTeam2)
    }


Last edited by danielkza; 10-15-2008 at 18:53.
danielkza is offline
tmen_13
BANNED
Join Date: Sep 2008
Old 10-16-2008 , 11:54   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #13

other bug is when you put tag's. when I put the tags, I was the only player that didnt get the tag. maybe because Im admin by amx?
tmen_13 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-18-2008 , 03:51   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #14

Code:
[de]
ALL_SPEC     = Alle Zuschauer
SORT_TEAM     = Sortiere Teams
TURN_ON        = Schalte Mix ein
TAG_ON        = Setzte Clan-Tag derTeams
TR_NICK        = Der Name des TERRORISTEN ^"%s^" wurde geaendert
CT_NICK        = Der Name des C-T ^"%s^" wurde geaendert
NICK_CHANGE    = Dein Nick wurde durch einen Admin geaendert
BEING_SORT    = Die Teams werden sortiert!
TR_NUM        = Es sind %d Terroristen
CT_NUM        = Es sind %d Counter-Terroristen
__________________

Mordekay is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-18-2008 , 06:49   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #15

Russian Translate by xPaw
Code:
[ru]
ALL_SPEC     = Vse spectatori
SORT_TEAM     = Sortirovat komandi
TURN_ON        = Nachat mix
TAG_ON        = Ispolzovat tag u komand
TR_NICK        = Imja terrorista ^"%s^" izmeneno
CT_NICK        = Imja counter-terrorista ^"%s^" izmeneno
NICK_CHANGE    = Vash nick bil izmenen administratorom
BEING_SORT    = Komandi bili otsartirovani!
TR_NUM        = Sejcash %d terroristov
CT_NUM        = Sejcash %d Counter-Terroristov
__________________
xPaw is offline
Old 10-25-2008, 14:27
Dores
This message has been deleted by Dores. Reason: not sure
tmen_13
BANNED
Join Date: Sep 2008
Old 11-03-2008 , 15:08   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #16

this is a very good plugin, you could fix the bugs
tmen_13 is offline
Old 11-05-2008, 16:13
tmen_13
This message has been deleted by YamiKaitou. Reason: bump
OffspringBR
Junior Member
Join Date: Jul 2008
Location: Brazil
Old 11-26-2008 , 09:50   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #17

Sorry ppl, I have no time now to fix the Plugin, if someone wanna do it, go ahead! I'll give you all the credits!

;)

Cya!
OffspringBR is offline
Send a message via MSN to OffspringBR
tmen_13
BANNED
Join Date: Sep 2008
Old 11-26-2008 , 10:42   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #18

maybe danielkza can
tmen_13 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-26-2008 , 11:44   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #19

Dutch translation:

Quote:
[en]
ALL_SPEC = Iedereen Spectators
SORT_TEAM = Sorteer Teams
TURN_ON = Draai de mengeling aan
TAG_ON = Gebruik een markering voor de Teams
TR_NICK = De naam van de TERRORISTS ^"%s^" is veranderd
CT_NICK = De naam van de COUNTER-TERRORISTS ^"%s^" is veranderd
NICK_CHANGE = Je naam is veranderd door de Administator
BEING_SORT = De teams zijn gesorteerd!
TR_NUM = Er zijn %d Terroristen
CT_NUM = Er zijn %d Counter-Terroristen
Hope i helped!
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
rpm
Member
Join Date: Aug 2007
Location: Brazil
Old 11-27-2008 , 14:06   Re: PunkServer Easy Mix - REWRITEN
Reply With Quote #20

boa brazuca =)

valeu ai cara, sempre bom ver brasileiro fazendo coisa boa hehe
rpm 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 23:05.


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