16.09.2010, 18:57
(
Последний раз редактировалось AndriusZ*; 17.09.2010 в 17:40.
)
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 )
and
on gamemodeinit.. ( Triads team didint working, t.y gTeam ID 4 ).
please help me, thanks!
Код:
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
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. ) |
please help me, thanks!