[Ajuda] Gang Zona
#1

Galera To Querendo um comando que vi no mata mata ontem
que aparece em cima do radar que tal pessoa ta dominando tal gangzona
alguem sabe como por ?
vlw
Reply
#2

Poste seu sistema de GZ. Ou variaveis usadas...
Reply
#3

eu uso a gang zona por chekpoint quase igual do mata mata so que minha nao avisa nada
so que vi o sistema la e gostei
dai quero por
Reply
#4

assim?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new nome[MAX_PLAYER_NAME],str[54];
    GetPlayerName(playerid, nome, sizeof(nome));
    format(str,sizeof(str),"%s esta dominando uma GangZone",nome);
    SendClientMessageToAll(-1,str);
    return 1;
}
Reply
#5

queria que identificace a gang e a gang zona q ele ta dominando e mostre ela acima do radar
Reply
#6

Quais as variбveis que armazena as gangues?
Reply
#7

E o negocio de aparecer em cima do radar, estude textdraw
Reply
#8

public ZoneCheckpointChecker()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= MAX_GZS+1 &&
gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 20)
{
cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
new tmp[11];

format(tmp, sizeof tmp, "~y~%2d/20", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
GameTextForPlayer(i, tmp, 1001, 4);
GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 20)
{
GivePlayerMoney(i, 1000);
GameTextForPlayer(i, "~b~Gang zona dominada Com Sucesso!", 4000, 1);
gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));

}
}
}
}
Reply
#9

Nгo й isso , procure algo parecido por gTeam ou PlayerInfo
Reply
#10

galera consegui faser ele identificar gang e jogador so queria q ele descobrice que gang zona ele ta tomando
se poderem ajudar agradeзo

ai o codigo
__________________________________________________ __________________________
public OnPlayerEnterCheckpoint(playerid)
{
lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid);
new nome[MAX_PLAYER_NAME],str[54];
GetPlayerName(playerid, nome, sizeof(nome));
format(str,sizeof(str),"%s e o %s Estao dominando A GangZone ",nome, pgangnames[gangteam[playerid]][0]);
SendClientMessageToAll(-1,str);



return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)