SA-MP Forums Archive
[DUV] Tirar as Faixas amarelas da DP ? - 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: [DUV] Tirar as Faixas amarelas da DP ? (/showthread.php?tid=154416)



[DUV] Tirar as Faixas amarelas da DP ? - zezao - 13.06.2010

Tipow eu Queria Tirar akela faixa da DP e Colocar teleporte quem nem no Gm Larp Ajuda ae Gente


Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - [NWD]Tweener_ - 13.06.2010

1є Procure.

2є Crie um Pickup:

http://forum.sa-mp.com/index.php?topic=141696.0



No OnPlayerPickupPicku coloque a funзгo de tele-portar para o Interior.

EX:
pawn Код:
if(pickupid == NOMEDOPICKUP)
{
  GameTextForPlayer(playerid,"MENSAGEM", 1000, 1);
  SetPlayerInterior(playerid,ID);
  SetPlayerPos(playerid,COORDENADA);
}
NOMEPICKUP: Nome da Pickup que vocк criou
ID: ID Do Interior
COORDENADA: Coordenada do interior.

3є Para pegar as coordenadas dos interiores:

Vocк pode desabilitar a funзгo que tira as entradas para os interior, e ir no interior, colocar: /interior ai vocк anota o ID do interior, depois coloca /save e vai na pasta do seu GTA e pega as coordenadas lб.

Ou usa a Wiki:

https://sampwiki.blast.hk/wiki/Interior


Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - Rick_DR - 13.06.2010

Se foi o que entendi metes assim

no topo:
pawn Код:
new pickup1;
OnGameModeInit
pawn Код:
pickup1 = CreatePickup(1239, 2, -2638.00, 615.70, 14.45);// mudas as coordenadas e os tipo de pickup
em OnPlayerPickUpPickup

pawn Код:
if(pickupid == pickup1)
{
SendClientMessage(playerid, Verde, "Entras-te num local");
SetPlayerInterior(playerid, 17); // tens de ver o interior que queres
SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875); // tens de meter a coordenada que queres
}
http://weedarr.wikidot.com/interior listagens de interiores


Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - zezao - 13.06.2010

Bom Acho q vcs Nгo Tгo Entendendo vo Passar os cods

Код:
//No Topo coloquei Isso
forward OnPlayerEnterFood(playerid, foodid);
forward PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz);
forward OnPlayerExitFood(playerid);
forward CheckForWalkingTeleport(playerid);
ae depois puis assim
Код:
//
public CheckForWalkingTeleport(playerid) // only put teleports ON FOOT here, use another function for vehicle ones - luk0r
{
	/*
	 * HOW TO USE THIS FUNCTION:
	 *
	 * Just use your normal PlayerToPoint functions but make them use PlayerToPointStripped instead.
	 * Use the arguments cx,cy,cz at the end of each call (look at the others for an example).
	 *
	 */
	new Float:cx, Float:cy, Float:cz;
	GetPlayerPos(playerid, cx, cy, cz);

	if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz))
	{//LSPD Entrance
		GameTextForPlayer(playerid, "~p~DP", 5000, 1);
		SetPlayerInterior(playerid, 6);
		SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
		PlayerInfo[playerid][pInt] = 6;
	}
	else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz))
	{//LSPD Exit
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
		PlayerInfo[playerid][pInt] = 0;
	  }
	return 1;
}
//
Код:
public OnPlayerExitFood(playerid)
{
	DisablePlayerCheckpoint(playerid);
	InAFoodPlace[playerid] = 0;
	return 1;
}
Код:
//
public OnPlayerEnterFood(playerid, foodid)
{
	switch (foodid)
	{
		case 1: // chicken
		{
			SetPlayerInterior(playerid, 9);
			PlayerInfo[playerid][pInt] = 9;
			SetPlayerPos(playerid,365.7793,-9.1699,1001.8516);
			SetPlayerCheckpoint(playerid, 368.9714,-6.2486,1001.8516, 1.5);
			GameTextForPlayer(playerid, "~w~Cluckin Bell", 5000, 1);
			InAFoodPlace[playerid] = 1;
		}
		case 2: // burger
		{
			SetPlayerInterior(playerid, 10);
			PlayerInfo[playerid][pInt] = 10;
			SetPlayerPos(playerid,366.0324,-72.6400,1001.5078);
			SetPlayerCheckpoint(playerid, 376.8571,-67.6620,1001.5151, 1.5);
			GameTextForPlayer(playerid, "~w~Burger Shot", 5000, 1);
			InAFoodPlace[playerid] = 2;
		}
		case 3: // pizza
		{
			SetPlayerInterior(playerid, 5);
			PlayerInfo[playerid][pInt] = 5;
			SetPlayerPos(playerid,372.4117,-130.4577,1001.4922);
			SetPlayerCheckpoint(playerid, 375.6895,-118.9683,1001.4995, 1.5);
			GameTextForPlayer(playerid, "~w~Well Stacked Pizza", 5000, 1);
			InAFoodPlace[playerid] = 3;
		}
		case 4: // donuts
		{
			SetPlayerInterior(playerid, 17);
			PlayerInfo[playerid][pInt] = 17;
			SetPlayerPos(playerid,377.5237,-191.6597,1000.6328);
			SetPlayerCheckpoint(playerid, 379.0611,-186.6032,1000.6328, 0.8);
			GameTextForPlayer(playerid, "~w~Jim's sticky ring", 5000, 1);
			InAFoodPlace[playerid] = 4;
		}
	}
	return 1;
}
Quando eu Compilo da Tudo Ok Mas quando vo testar nao da nada nao entra ;S

Ajuda ae Gente


Re: [DUV] Tirar as Faixas amarelas da DP ? - RoamPT - 14.06.2010

Nгo facas double post, lк as regras primeiro seu ignorante.


Re: [DUV] Tirar as Faixas amarelas da DP ? - rugal - 15.03.2011

mesmo poblema das faixas amarela


Re: [DUV] Tirar as Faixas amarelas da DP ? - [AF]Junior - 15.03.2011

Quer tirar as setas amarelas que teleportam e criar uma pickup pra ir a um tal lugar?

pawn Код:
DisableInteriorEnterExits();
Criar pickups pra ir a tal lugar й fбcil, tem tutorial sobre isso.


Re: [DUV] Tirar as Faixas amarelas da DP ? - [$]GhosTRydeR[$] - 15.03.2011

Na Minha Opniгo, nгo ficaria legal (Sim as faixas amarelas sгo feias, qualquer outro Pickup Seria Melhor)
Mas Ver a animaзгo do personagem entrando e saindo do Interior й Maarб! Xd