24.01.2010, 23:19
Use:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == FIRST_TEAM) //EX: TEAM_GREEN
{
SendClientMessage(playerid,COLOR_GREEN, "You are the rong team!");
return;
}
else if(gTeam[playerid] == SECOND_TEAM) //EX: TEAM_BLUE
{
GameTextForPlayer(playerid, "|PRISONERS WIN|", 2500, 5);
GameModeExit();
return;
}
}