[DUV] Tirar as Faixas amarelas da DP ?
#1

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

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

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

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

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

mesmo poblema das faixas amarela
Reply
#7

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)