[AJUDA] Prefeitura
#1

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
Reply
#2

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

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

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
    }
Reply
#5

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
    }
Reply
#6

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 -.-
Reply
#7

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
Reply
#8

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
    }
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)