18.01.2013, 10:46
(
Последний раз редактировалось DaRk_RaiN; 18.01.2013 в 13:18.
)
pawn Код:
forward SetGangZone(playerid);public SetGangZone(playerid)
{
if(gTeam[playerid] == TEAM_GROVE)
{
GangZoneShowForAll(Zone[GAS],COLOR_GREEN);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured GasStation For GROVE",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_AZTECA)
{
GangZoneShowForAll(Zone[GAS],COLOR_LIGHTBLUE);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured GasStation For AEZATECAS",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_POLICE)
{
GangZoneShowForAll(Zone[GAS],COLOR_BLUE);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured GasStation For POLICE",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_BALLAS)
{
GangZoneShowForAll(Zone[GAS],COLOR_PURPLE);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured GasStation For BALLA",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_TRIADS)
{
GangZoneShowForAll(Zone[GAS],RED);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured GasStation For TRIAD",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_VAGOS)
{
GangZoneShowForAll(Zone[GZONE],COLOR_YELLOW);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For VAGOS",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_DANANG)
{
GangZoneShowForAll(Zone[GZONE],COLOR_OLIVE);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For DANANG",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
if(gTeam[playerid] == TEAM_MAFIA)
{
GangZoneShowForAll(Zone[GZONE],COLOR_MAROON);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For MAFIA",pName);
SendClientMessageToAll(0x008000AA,string);
tCP[GZONE] = gTeam[playerid];
}
return 1;
}