SA-MP Forums Archive
question. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: question. (/showthread.php?tid=177169)



question. - AndriusZ* - 16.09.2010

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!


Re: question. - AndriusZ* - 17.09.2010

sorry for this, help.


Re: question. - AndriusZ* - 17.09.2010

ohh, sorry, but bump =//


Re: question. - Mike_Peterson - 17.09.2010

omg, i cant read shit from this ...
A. its [quote] use [pawn] or [code]
B. Its russian or lithuanian or sumthing (weird language)
C. its all without open lines so bad to read


Re: question. - AndriusZ* - 17.09.2010

1. fixed
2. lithuanian
3. fixed


Re: question. - FireCat - 17.09.2010

bump'er >.> dont BUMP!


Re: question. - AndriusZ* - 17.09.2010

offtop'er >.> dont OFFTOPIC!


Re: question. - Mike_Peterson - 17.09.2010

i cant seem to find it sorry :/