SA-MP Forums Archive
[AJUDA] Prefeitura - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Prefeitura (/showthread.php?tid=312064)



[AJUDA] Prefeitura - Ryktardy - 19.01.2012

Bom Galera eu Gostaria de Uma ajuda sobre a prefeitura de las venturas tipo ela entra normal na pref so que quando sai da pref de lv ela vai parar saida da pref de ls gostaria de uma ajuda vou posta os cods de lv e ls vcs poderiam me ajudar fazendo favor






// LV

pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid, 385.4674,173.9319,1008.3828); //Prefeitura Las Venture
    }
pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
    }
// FIM LV

// LS

pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
    }
pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
    }
//fim ls


Re: [AJUDA] Prefeitura - dPlaYer_ - 19.01.2012

Os COmandos sao iguais por isto da conflito?eu axo '-'
se eu estiver errado me corrijam '-'


Re: [AJUDA] Prefeitura - Don_Speed - 19.01.2012

Nao Voce Tem Que Usar Uma Treta Para Desabilitar as Entradas Original do New.pwn


Re: [AJUDA] Prefeitura - Ryktardy - 19.01.2012

Quote:
Originally Posted by [LF]PlaYer
Посмотреть сообщение
Os COmandos sao iguais por isto da conflito?eu axo '-'
se eu estiver errado me corrijam '-'
Nвo Mano esta Normal esse Bagui da Pref estao junto no mesmo comando

pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid, 385.4674,173.9319,1008.3828); //Prefeitura Las Venture
    }
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
    }
pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
    }
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
    }



Re: [AJUDA] Prefeitura - Blacknot - 19.01.2012

pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
    {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
      }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
    {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
    }

if(strcmp(cmdtext, "/enter", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid, 385.4674,173.9319,1008.3828); //Prefeitura Las Venture
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
    {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
    }



Re: [AJUDA] Prefeitura - Ryktardy - 19.01.2012

Quote:
Originally Posted by Blacknot
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
    {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
      }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
    {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
    }

if(strcmp(cmdtext, "/enter", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid, 385.4674,173.9319,1008.3828); //Prefeitura Las Venture
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
    {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
    }
Travo o Pawn -.-


Re: [AJUDA] Prefeitura - Don_Speed - 19.01.2012

Finge q nao le ne Tem Que Desabilitar as Entradas originais do new.pwn
pawn Код:
DisableInteriorEnterExits();
http://forum.sa-mp.com/showthread.ph...53#post1635753


Re: [AJUDA] Prefeitura - Ryktardy - 19.01.2012

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Finge q nao le ne Tem Que Desabilitar as Entradas originais do new.pwn
pawn Код:
DisableInteriorEnterExits();
http://forum.sa-mp.com/showthread.ph...53#post1635753
Essas Entradas Sao Queals Que Entra Com o ''f''


pawn Код:
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter /Sair )
{
   OnPlayerCommandText(playerid,"/enter");
   OnPlayerCommandText(playerid,"/sair");
}
pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Las Venture
    }
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 3);
      SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
    }
pawn Код:
if(strcmp(cmdtext, "/sair", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Las Venturas
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2194.8538,1678.1536,12.3672); //Prefeitura Las Venture
    }
   if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
   {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
    }



Re: [AJUDA] Prefeitura - Don_Speed - 19.01.2012

Manolo Voce esta Tento Conflito Na Entrada que Voce Crio Com a Entrada original entao Tem Que Desabilitar.


Re: [AJUDA] Prefeitura - Ryktardy - 19.01.2012

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Manolo Voce esta Tento Conflito Na Entrada que Voce Crio Com a Entrada original entao Tem Que Desabilitar.
Ah Blz e que eu so Novato -.- vlw +rep