28.02.2009, 17:45
pawn Код:
{
GetPlayerPos(playerid,posX,posY,posZ);
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
if ( i == GetTeamByName ("Lambo") ) {
SetPlayerCheckpoint(i,posX,posY,posZ,5.0);
SendTeamMessage(Team1, COLOR_RED, "Lambo Team Gather!");
}
return 1;
}
EDIT: oops thats wrong proper code is:
pawn Код:
{
GetPlayerPos(playerid,posX,posY,posZ);
new Team[MAX_PLAYERS] = GetTeamByName ("Lambo");
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
if ( Team[i] == 5 ) {
SetPlayerCheckpoint(i,posX,posY,posZ,5.0);
SendTeamMessage(Team1, COLOR_RED, "Lambo Team Gather!");
}
}
return 1;
}