question.
#1

hello, so im added team balancer to TDM server, it all works good, but one team balancer NOT;S it say, that is full anytime ( ex: OnGameModeInit ) so im tryied to set variable 0 when gamemode init, and +1 when player join * * * * TEAM. there is a script: ( no errors )


Код:
    if ((Count1 > Count2) && gTeam[playerid] == Yakuza) // Jei Yakuza balanceris didesnis, negu LCN - neleidюiam бstoti б komandа
    { // Atidarom
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Atsipraрome, taиiau\nРi komanda yra pilna, pasirinkite kitа.", "Gerai", "Uюdaryti"); // Praneрam
        return 0; // Dedamas return 0; - scriptas baigtas.
    } // Uюdarom
    else if ((Count2 > Count1) && gTeam[playerid] == Nostra && GetPlayerScore( playerid ) < 1500 ) // Jei LCN balanceris didesnis uю Policijа, neleidюiam бstoti
    { // Atidarom
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Atsipraрome, taиiau\nJыs neturite 1.500 patirties taрkш,\nArba рi komanda yra pilna, pasirinkite kitа.", "Gerai", "Uюdaryti"); // Praneрam
        return 0; // Dedamas return 0; - scriptas baigtas
    } // Uюdarom
    else if ((Count3 > Count2) && gTeam[playerid] == Policija && GetPlayerScore( playerid ) < 3000 ) // Jei Policijos balanceris didesins uю LCN, neleidюiam бstoti
    { // Atidarom
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Atsipraрome, taиiau\nJыs neturite 3.000 patirties taрkш,\nArba рi komanda yra pilna, pasirinkite kitа.", "Gerai", "Uюdaryti"); // Praneрam
        return 0; // Dedamas return 0; - scriptas baigtas
    } // Uюdarom
    else if ((Count4 > Count3) && gTeam[playerid] == Triads) // Jei Triads balanceris didesnis, negu Policijos - neleidюiam бstoti
    { // Atidarom
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Atsipraрome,\nРi komanda yra pilna, pasirinkite kitа.", "Gerai", "Uюdaryti"); // Praneрam
        return 0; // Uюdarom
    } // Uюdarom
and
Quote:

Count1 = 0; // Nustato Yakuza balancerб б 0 ( komandoje юaidлjш nлra. )
Count2 = 0; // Nustato La Cosa Nostra balancerб б 0 ( komandoje юaidлjш nлra. )
Count3 = 0; // Nustato Policijos balancerб б 0 ( komandoje юaidлjш nлra. )
Count4 = 0; // Nustato Triads balancerб б 0 ( komandoje юaidлjш nлra. )

on gamemodeinit.. ( Triads team didint working, t.y gTeam ID 4 ).
please help me, thanks!
Reply


Messages In This Thread
question. - by AndriusZ* - 16.09.2010, 18:57
Re: question. - by AndriusZ* - 17.09.2010, 12:01
Re: question. - by AndriusZ* - 17.09.2010, 16:18
Re: question. - by Mike_Peterson - 17.09.2010, 17:39
Re: question. - by AndriusZ* - 17.09.2010, 17:40
Re: question. - by FireCat - 17.09.2010, 17:41
Re: question. - by AndriusZ* - 17.09.2010, 17:44
Re: question. - by Mike_Peterson - 17.09.2010, 17:44

Forum Jump:


Users browsing this thread: 3 Guest(s)