10.01.2015, 20:20
pawn Code:
public OnPlayerUpdate(playerid)
{
new Keys,LALT;
GetPlayerKeys(playerid,Keys, LALT);
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2497.5610,-1687.2009,13.4887))
{
gTeam[playerid] = GANG_GROVES;
SetPlayerColor(playerid, GANG_GROVES_COLOR);
PlayerInfo[playerid][pGang] = GANG_GROVES;
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2165.3833,-1673.5201,15.0791))
{
gTeam[playerid] = GANG_BALLAS;
PlayerInfo[playerid][pGang] = GANG_BALLAS;
SetPlayerColor(playerid, GANG_BALLAS_COLOR);
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2354.5571,-1169.9790,28.0411))
{
gTeam[playerid] = GANG_VAGOS;
SetPlayerColor(playerid, GANG_VAGOS_COLOR);
PlayerInfo[playerid][pGang] = GANG_VAGOS;
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 1876.7480,-2022.2742,13.5391))
{
gTeam[playerid] = GANG_AZTECAS;
SetPlayerColor(playerid, GANG_AZTECAS_COLOR);
PlayerInfo[playerid][pGang] = GANG_AZTECAS;
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,2637.1663,2350.2969,10.6719))
{
gTeam[playerid] = GANG_BIKER;
SetPlayerColor(playerid, GANG_BIKER_COLOR);
PlayerInfo[playerid][pGang] = GANG_BIKER;
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,1664.8064,2252.1487,11.0625))
{
gTeam[playerid] = GANG_RUSSIAN_MAFIAS;
SetPlayerColor(playerid, GANG_RUSSIAN_MAFIAS_COLOR);
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
PlayerInfo[playerid][pGang] = GANG_RUSSIAN_MAFIAS;
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-1742.1278,23.7553,3.5547))
{
gTeam[playerid] = GANG_DA_NANG_BOYS;
SetPlayerColor(playerid, GANG_DA_NANG_BOYS_COLOR);
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
PlayerInfo[playerid][pGang] = GANG_DA_NANG_BOYS;
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-2626.7715,1409.6565,7.0938))
{
gTeam[playerid] = GANG_RIFAS;
SetPlayerColor(playerid, GANG_RIFAS_COLOR);
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
PlayerInfo[playerid][pGang] = GANG_RIFAS;
return 1;
}
if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-2155.9807,629.8221,52.3672))
{
gTeam[playerid] = GANG_TRIADS;
SetPlayerColor(playerid, GANG_TRIAD_COLOR);
SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
PlayerInfo[playerid][pGang] = GANG_TRIADS;
return 1;
}
return 1;
}