AYUDA CON EL FLASH DE GANGZONE -
chucho - 26.05.2011
hola ahora quiero que me expliquen como puedo hacer para que cada que se un equipo ataque al otro el gagzone parpadee del color de equipo que ataca es decir
si los policias estan atacando alos groves quiero que el gangzone de los groves parpadee de color azul con espero y me entiendan
gracias estos son mis codigos
pawn Код:
//Gagnzones
new Territorio_Grove;
new Territorio_Balla;
new Territorio_Vagos;
new Territorio_Azteca;
new Territorio_Barberos;
new Terriotorio_Civiles;
new Territorio_Interpol;
new Territorio_Mafia;
new Territorio_Basureros;
pawn Код:
public OnPlayerSpawn(playerid)
{
if( Spawn[playerid] == 0)
{
GivePlayerMoney(playerid,-200);
Spawn[playerid] = 1;
}
GangZoneShowForPlayer(playerid, Territorio_Grove, 0x0080009C);
GangZoneShowForPlayer(playerid, Territorio_Balla, 0x80008096);
GangZoneShowForPlayer(playerid, Territorio_Vagos, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Territorio_Azteca, 0x2EBFDE96);
GangZoneShowForPlayer(playerid, Territorio_Barberos, 0x0080FF96);
GangZoneShowForPlayer(playerid, Terriotorio_Civiles, 0xFF000096);
GangZoneShowForPlayer(playerid, Territorio_Interpol, 0x00000096);
GangZoneShowForPlayer(playerid, Territorio_Mafia, 0x80404096);
GangZoneShowForPlayer(playerid, Territorio_Basureros, 0x80800096);
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Territory Sky Line");
UsePlayerPedAnims();
ShowPlayerMarkers(1);
ShowNameTags(1);
EnableStuntBonusForAll(1);
Territorio_Grove = GangZoneCreate(2083.108, -1733.182, 2619.307, -1606.855);
Territorio_Balla = GangZoneCreate(965.0738, -1393.677, 1352.963, -1137.074);
Territorio_Vagos = GangZoneCreate(1969.022, -1291.036, 2356.912, -1046.276);
Territorio_Azteca = GangZoneCreate(1680.007, -2064.793, 1950.008, -1602.907);
Territorio_Barberos = GangZoneCreate(2459.588, -2250.337, 2832.266, -1934.517);
Terriotorio_Civiles = GangZoneCreate(1725.641, -1492.37, 2147.756, -1342.356);
Territorio_Interpol = GangZoneCreate(1307.329, -1820.033, 1664.796, -1401.572);
Territorio_Mafia = GangZoneCreate(1029.722, -2187.173, 1691.416, -1871.354);
Territorio_Basureros = GangZoneCreate(2451.983, -1259.454, 2817.055, -1042.328);
Territorio_Mafia = GangZoneCreate(1006.905, -2195.068, 1680.007, -1898.988);
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
[J]ulian - 27.05.2011
GangZoneFlashForPlayer: Le muestra el GangZone cuando pasa algo a un player.
GangZoneStopFlashForPlayer: Detiene el GangZone que fue mostrado cuando pasу algo.
https://sampwiki.blast.hk/wiki/GangZoneFlashForPlayer
https://sampwiki.blast.hk/wiki/GangZoneStopFlashForPlayer
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
chucho - 28.05.2011
HOLA hice esto pero me manda errores cual es mi problema y una pregunta mas eso tengo que haces por cada zona que quiera el flash
pawn Код:
public OnPlayerSpawn(playerid)
{
if( Spawn[playerid] == 0)
{
GivePlayerMoney(playerid,2300);
Spawn[playerid] = 1;
}
GangZoneShowForPlayer(playerid, Territorio_Grove, 0x0080009C);
GangZoneShowForPlayer(playerid, Territorio_Balla, 0x80008096);
GangZoneShowForPlayer(playerid, Territorio_Vagos, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Territorio_Azteca, 0x2EBFDE96);
GangZoneShowForPlayer(playerid, Territorio_Barberos, 0x0080FF96);
GangZoneShowForPlayer(playerid, Terriotorio_Civiles, 0xFF000096);
GangZoneShowForPlayer(playerid, Territorio_Interpol, 0x00000096);
GangZoneShowForPlayer(playerid, Territorio_Mafia, 0x80404096);
GangZoneShowForPlayer(playerid, Territorio_Basureros, 0x80800096);
GangZoneFlashForPlayer(playerid,gangzone,COLOR_RED);
{
GangZoneFlashForPlayer(playerid, gangzone, COLOR_RED);
return 1;
}
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Territory Sky Line");
UsePlayerPedAnims();
ShowPlayerMarkers(1);
ShowNameTags(1);
EnableStuntBonusForAll(1);
Territorio_Grove = GangZoneCreate(2083.108, -1733.182, 2619.307, -1606.855);
Territorio_Balla = GangZoneCreate(965.0738, -1393.677, 1352.963, -1137.074);
Territorio_Vagos = GangZoneCreate(1969.022, -1291.036, 2356.912, -1046.276);
Territorio_Azteca = GangZoneCreate(1680.007, -2064.793, 1950.008, -1602.907);
Territorio_Barberos = GangZoneCreate(2459.588, -2250.337, 2832.266, -1934.517);
Terriotorio_Civiles = GangZoneCreate(1725.641, -1492.37, 2147.756, -1342.356);
Territorio_Interpol = GangZoneCreate(1307.329, -1820.033, 1664.796, -1401.572);
Territorio_Mafia = GangZoneCreate(1029.722, -2187.173, 1691.416, -1871.354);
Territorio_Basureros = GangZoneCreate(2451.983, -1259.454, 2817.055, -1042.328);
Territorio_Mafia = GangZoneCreate(1006.905, -2195.068, 1680.007, -1898.988);
gangzone = GangZoneCreate(2083.108, -1733.182, 2619.307, -1606.855);
gangzone = GangZoneCreate(2083.108, -1733.182, 2619.307, -1606.855);
y estos son los errores
pawn Код:
C:\Documents and Settings\Geek Man\Escritorio\SERVIDOR\SERVIDOR\TerritorySkyLine.pwn(270) : warning 225: unreachable code
C:\Documents and Settings\Geek Man\Escritorio\SERVIDOR\SERVIDOR\TerritorySkyLine.pwn(620) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Geek Man\Escritorio\SERVIDOR\SERVIDOR\TerritorySkyLine.pwn(620) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\Geek Man\Escritorio\SERVIDOR\SERVIDOR\TerritorySkyLine.pwn(622) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Geek Man\Escritorio\SERVIDOR\SERVIDOR\TerritorySkyLine.pwn(629) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
por favor explicame a detalle amigo por favor
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
Lunnatiicz - 28.05.2011
Lo haces mal .__.
pawn Код:
public OnPlayerSpawn(playerid)
{
if( Spawn[playerid] == 0)
{
GivePlayerMoney(playerid,2300);
Spawn[playerid] = 1;
}
GangZoneShowForPlayer(playerid, Territorio_Grove, 0x0080009C);
GangZoneShowForPlayer(playerid, Territorio_Balla, 0x80008096);
GangZoneShowForPlayer(playerid, Territorio_Vagos, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Territorio_Azteca, 0x2EBFDE96);
GangZoneShowForPlayer(playerid, Territorio_Barberos, 0x0080FF96);
GangZoneShowForPlayer(playerid, Terriotorio_Civiles, 0xFF000096);
GangZoneShowForPlayer(playerid, Territorio_Interpol, 0x00000096);
GangZoneShowForPlayer(playerid, Territorio_Mafia, 0x80404096);
GangZoneShowForPlayer(playerid, Territorio_Basureros, 0x80800096);
GangZoneFlashForPlayer(playerid,gangzone,COLOR_RED);
{
GangZoneFlashForPlayer(playerid, gangzone, COLOR_RED);
return 1;
}
esta fatal el error, revisalo bien y verбs.. si no puedes, decirme y te ayudo, ya que es algo a simple vista
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
chucho - 28.05.2011
no tengo idea en que estoy mal por favor ayudame
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
chucho - 28.05.2011
ayuda jajaja alguien ayudenme con mi problema
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
MaRcOsWeB - 28.05.2011
No doble post, porfavor.
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
Ari3l - 28.05.2011
GangZoneFlashForPlayer(playerid,gangzone,COLOR_RED ); // gangzone reemplazalo por un territorio_...
{ // borra esto no entiendo para que lo abres :/
GangZoneFlashForPlayer(playerid, gangzone, COLOR_RED);/ gangzone reemplazalo por un territorio_...
return 1;
}
Respuesta: AYUDA CON EL FLASH DE GANGZONE -
chucho - 30.05.2011
oye ariel no entendi mucho tu respuesta me la puedes explicar
Re: Respuesta: AYUDA CON EL FLASH DE GANGZONE -
jeanpierrevera - 30.05.2011
Quote:
Originally Posted by chucho
oye ariel no entendi mucho tu respuesta me la puedes explicar
|
perdon, pero si no sabes nada menos aprenderas preguntando y copiando/pegando pensarбs que estas aprendiendo pero no es asн, lee los tutoriales, eso que puso Ariel no tienen magia, entonces es por que no has leido nada, es una simple funciуn,
https://sampforum.blast.hk/showthread.php?tid=225796 leelo y si no entiendes pregunta aqui o leй esto que es justo lo que quieres
https://sampwiki.blast.hk/wiki/GangZoneStopFlashForPlayer si no entendiste luego de leer entonces se te puede ayudar pero primero ve si lo puedes hacer tu, no lo tomes a mal antes preguntaba de todo como tu, y mirame ahora casi no

suerte.