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
#2

sorry for this, help.
Reply
#3

ohh, sorry, but bump =//
Reply
#4

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
Reply
#5

1. fixed
2. lithuanian
3. fixed
Reply
#6

bump'er >.> dont BUMP!
Reply
#7

offtop'er >.> dont OFFTOPIC!
Reply
#8

i cant seem to find it sorry :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)