some questions / help.
#5

1. Try something like this:
pawn Код:
//global var
new gTeamCount[ MAX_TEAMS ]; //change MAX_TEAMS with the number of teams you got
pawn Код:
//when a player joins a team
if( gTeamCount[ ID_OF_TEAM ] == 10 ) //change ID_OF_TEAM with the actual ID of the team
{
    SendClientMessage( playerid, 0xFF0000FF, "There are already max players in this team, chose another one!" );
    //do whatever you want
}
gTeamCount[ ID_OF_TEAM ]++;
2. Use GetPlayerScore:

pawn Код:
//when a player tries to join SWAT team
if( GetPlayerScore( playerid ) < 2000 )
    return SendClientMessage( playerid, 0xFF0000FF, "This team requires 2000 score!" );
These are just examples, play around with it
Reply


Messages In This Thread
some questions / help. - by AndriusZ* - 04.09.2010, 19:50
Re: some questions / help. - by AndriusZ* - 04.09.2010, 21:07
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:21
Re: some questions / help. - by Dime - 04.09.2010, 21:24
Re: some questions / help. - by LarzI - 04.09.2010, 21:24
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:28
Re: some questions / help. - by LarzI - 04.09.2010, 21:31
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:33
Re: some questions / help. - by LarzI - 04.09.2010, 21:48
Re: some questions / help. - by AndriusZ* - 04.09.2010, 22:18

Forum Jump:


Users browsing this thread: 1 Guest(s)