Igen meglehet.
(Nem biztos amit irok
most :D)
GetPlayersInTeamFromMaxPlayers(TEAM_NOKEDLI);//Ird oda a csapatod nevet melyiket akarod lezarni.
Es valahova a modba ezt:
stock GetPlayersInTeamFromMaxPlayers(teamid)
{
new playercount = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(HasPlayerSpawned == false) continue;
if(GetPlayerState(i) == PLAYER_STATE_NONE) continue;
if(gTeam != teamid) continue;
playercount++;
}
return playercount;
}
Ha hulyeseg javitsatok ki :D
hello.Csinalsz egy valtozot.
new Team1, Team2;
a zar1 parancs ala irod.
if(Team1 == 1) {
Team1 = 0;
SendClientMessage(playerid, -1, \"NYITVA\");
} else if(Team1 == 0) {
Team1 = 1;
SendClientMessage(playerid, -1, \"ZARVA\");
evel a team1 et tudod zarni/nyitni.
mikor a jatekos bekel lepjen a csapatba.
if(Team1 == 1) return SendClientMessage(playerid, -1, \"Csapat zarva\");
ha a masik csapatot valasztja
if(Team2 == 1) return SendClientMessage(playerid, -1, \"Csapat zarva\");