24.01.2010, 22:57
Try this (Not Tested):
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);
//WIN FUNCTION... (Ex:GameModeExit();
return;
}
}