12.03.2009, 10:36
pawn Код:
public OnPlayerSpawn(playerid)
{
[...]
// show the gangzone to everyone once they connect
GangZoneShowForPlayer(playerid, Ter, COLOR_YELLOW);
[...]
return 1;
}
// timer you already have
public WarArea(playerid)
{
if (IsPlayerInArea(playerid, -291.9469, 2627.522, -163.4902, 2755.979) && gTeam[playerid] == TEAM_NASA)
GangZoneShowForPlayer(playerid,Ter, COLOR_BLUE);
else
GangZoneShowForPlayer(playerid, Ter, COLOR_YELLOW);
return 1;
}