Applying a IF condition
#6

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;
}
Reply


Messages In This Thread
Applying a IF condition - by Mr.Faqahat - 17.01.2013, 18:19
Re: Applying a IF condition - by azzerking - 17.01.2013, 18:21
Re: Applying a IF condition - by Mr.Faqahat - 18.01.2013, 07:11
Re: Applying a IF condition - by basse - 18.01.2013, 09:14
Re: Applying a IF condition - by Norrin - 18.01.2013, 10:38
Re: Applying a IF condition - by DaRk_RaiN - 18.01.2013, 10:46

Forum Jump:


Users browsing this thread: 2 Guest(s)