16.02.2010, 00:57
Like in this team TEAMb only has to have 2 players playing as TEAMb .. you know what i mean ?
Originally Posted by AlbanianGuy
Like in this team TEAMb only has to have 2 players playing as TEAMb .. you know what i mean ?
|
if(teambcount >= 2)
{
// Do whatever here.
}
Originally Posted by AlbanianGuy
Can you be more specific ... like can u do it for TEAMb ... pls cuz i am new in scripting ..
|
Originally Posted by Norn
Quote:
Player joins teamb: teambcount++; pawn Код:
|
new TeamCount = 0; //When person enters team TeamCount++; //When persons leaves team TeamCount--; //Then to see if its full if(TeamCount >= 15) { SendClientMessage(playerid,red,"Team is full!"); }
Originally Posted by ruckfules99
Код:
new TeamCount = 0; //When person enters team TeamCount++; //When persons leaves team TeamCount--; //Then to see if its full if(TeamCount >= 15) { SendClientMessage(playerid,red,"Team is full!"); } |