17.01.2012, 18:54
pawn Код:
forward SetZone(playerid);
public SetZone(playerid)
{
if (gTeam[playerid] == TEAM_Latino)
{
GangZoneShowForAll(gangzone,TEAM_Latino_COLOR);
}
else if (gTeam[playerid] == TEAM_Souviet)
{
GangZoneShowForAll(gangzone,TEAM_Souviet_COLOR);
}
else if (gTeam[playerid] == TEAM_Arabian)
{
GangZoneShowForAll(gangzone, TEAM_Arabian_COLOR);
}
else if (gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone, TEAM_USA_COLOR);
}
else if (gTeam[playerid] == TEAM_Europian)
{
GangZoneShowForAll(gangzone, TEAM_Europian_COLOR);
}
else if (gTeam[playerid] == TEAM_Japan)
{
GangZoneShowForAll(gangzone, TEAM_Japan_COLOR);
}
else if (gTeam[playerid] == TEAM_Taliban)
{
GangZoneShowForAll(gangzone, TEAM_Taliban_COLOR);
}
SetPlayerScore(playerid,GetPlayerScore(playerid)+5 );
GivePlayerMoney(playerid,500);
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
return 1;
}