Posts: 218
Threads: 26
Joined: Sep 2011
Reputation:
0
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
Posts: 4,371
Threads: 71
Joined: Sep 2010
Reputation:
0
Poste seu sistema de GZ. Ou variaveis usadas...
Posts: 218
Threads: 26
Joined: Sep 2011
Reputation:
0
queria que identificace a gang e a gang zona q ele ta dominando e mostre ela acima do radar
Posts: 720
Threads: 36
Joined: Sep 2010
Reputation:
0
Quais as variбveis que armazena as gangues?
Posts: 562
Threads: 3
Joined: Dec 2009
Reputation:
0
E o negocio de aparecer em cima do radar, estude textdraw
Posts: 218
Threads: 26
Joined: Sep 2011
Reputation:
0
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));
}
}
}
}
Posts: 562
Threads: 3
Joined: Dec 2009
Reputation:
0
Nгo й isso , procure algo parecido por gTeam ou PlayerInfo
Posts: 218
Threads: 26
Joined: Sep 2011
Reputation:
0
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;
}