14.08.2010, 18:40
as news que eu uso pro GZ ...
-
no OnGameModeInit:
embaixo tem outras coisas tbm, mas nao fazem parte do gz .
-
e no OnPlayerSpawn ...
bom, tudo compila bonitinho e talz .
quando eu entro no sv , sу aparece a GZ da gang que eu entro .
mas quando eu entro em outra, a anterior fik .
as gz's so carregam , quando eu entro em todas as gangs .
e algumas nao carregam =/
como eu resolvo isso ?
pawn Код:
new Groove;
new Ballas;
new Aztecas;
new AcM;
new KoD;
new Rappers;
new Meninas;
new Bope;
new Mafia;
new Vagos;
new Comando;
new Ada;
no OnGameModeInit:
pawn Код:
public OnGameModeInit()
{
Groove = GangZoneCreate(2327.146972, -1907.094238, 2655.146972, -1507.094238);
Ballas = GangZoneCreate(1889.216796, -1298.114990, 2169.216796, -1114.114990);
Aztecas = GangZoneCreate(2181.514648, -1311.711303, 2341.514648, -1111.711303);
AcM = GangZoneCreate(1687.658935, -1968.187255, 1903.658935, -1760.187255);
KoD = GangZoneCreate(1977.161621, -1962.798461, 2273.161621, -1674.798461);
Rappers = GangZoneCreate(1708.106323, -1274.277343, 1876.106323, -1066.277343);
Meninas = GangZoneCreate(1656.333740, -1745.722290, 1808.333740, -1505.722290);
Bope = GangZoneCreate(1417.773925, -1733.513061, 1657.773925, -1509.513061);
Mafia = GangZoneCreate(1143.968750, -954.469787, 1415.968750, -682.469787);
Vagos = GangZoneCreate(2152.829101, -1123.370361, 2336.829101, -987.370361);
Comando = GangZoneCreate(1965.366455, -1233.704101, 2149.366455, -985.704101);
Ada = GangZoneCreate(2211.777587, -1990.416503, 2323.777587, -1870.416503);
-
e no OnPlayerSpawn ...
pawn Код:
if(gTeam[playerid] == TEAM_1)
{
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid,"~w~NAO ~r~MATE ~w~os players ~g~verdes ",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Groove,COLOR_GREEN);
}
else if(gTeam[playerid] == TEAM_2)
{
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid,"~w~NAO ~r~mate ~w~os players ~p~roxos ",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Ballas,COLOR_PURPLE);
}
else if(gTeam[playerid] == TEAM_3)
{
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid,"~w~NAO ~r~mate ~w~os players ~b~azuis ",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Aztecas,COLOR_DARKAZUL);
}
else if(gTeam[playerid] == TEAM_4)
{
SetPlayerColor(playerid,COLOR_oMs);
GameTextForPlayer(playerid,"~w~NAO ~r~mate ~w~os players ~b~azuis ",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(AcM,COLOR_BROWN);
}
else if(gTeam[playerid] == TEAM_5)
{
SetPlayerColor(playerid,COLOR_KoD);
GameTextForPlayer(playerid,"~w~ NAO ~r~mate ~w~os players vermelhos escuro",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(KoD,COLOR_MARROM);
}
else if(gTeam[playerid] == TEAM_6)
{
SetPlayerColor(playerid,COLOR_LARANJA);
GameTextForPlayer(playerid,"~w~NAO ~r~mate ~w~os players laranjas",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Rappers,COLOR_DARKAZUL);
}
else if(gTeam[playerid] == TEAM_7)
{
SetPlayerColor(playerid,COLOR_PINK);
GameTextForPlayer(playerid,"~w~NAO ~r~mate ~w~os players rosa",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Meninas,COLOR_PINK);
}
else if(gTeam[playerid] == TEAM_8)
{
SetPlayerColor(playerid,COLOR_MARROM);
GameTextForPlayer(playerid,"~w~ nao ~r~Mate ~w~os players marrom",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Bope,COLOR_BLACK);
}
else if(gTeam[playerid] == TEAM_9)
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
GameTextForPlayer(playerid,"~w~nao ~r~mate ~w~os players vermelho claro",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Mafia,COLOR_RED2);
}
else if(gTeam[playerid] == TEAM_10)
{
SetPlayerColor(playerid,COLOR_YELLOW);
GameTextForPlayer(playerid,"~w~nao ~r~mate ~w~os players amarelos",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Vagos,COLOR_OURO);
}
else if(gTeam[playerid] == TEAM_11)
{
SetPlayerColor(playerid,COLOR_RED);
GameTextForPlayer(playerid,"~w~ nao ~r~mate os players ~r~vermelhos",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Comando,COLOR_LIGHTRED);
}
else if(gTeam[playerid] == TEAM_12)
{
SetPlayerColor(playerid,COLOR_CINZA);
GameTextForPlayer(playerid,"~w~nao ~r~mate os players pretos",2000,5);
if(IsPlayerAdmin(playerid)) GangZoneShowForAll(Ada,COR_LARANJA);
}
return 1;
}
quando eu entro no sv , sу aparece a GZ da gang que eu entro .
mas quando eu entro em outra, a anterior fik .
as gz's so carregam , quando eu entro em todas as gangs .
e algumas nao carregam =/
como eu resolvo isso ?