[DUV] Tirar as Faixas amarelas da DP ?
#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


Messages In This Thread
[DUV] Tirar as Faixas amarelas da DP ? - by zezao - 13.06.2010, 19:36
Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - by [NWD]Tweener_ - 13.06.2010, 19:44
Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - by Rick_DR - 13.06.2010, 19:49
Re: [DUV] Tirar as Setinhas e Colocar Pickups ? - by zezao - 13.06.2010, 20:21
Re: [DUV] Tirar as Faixas amarelas da DP ? - by RoamPT - 14.06.2010, 00:05
Re: [DUV] Tirar as Faixas amarelas da DP ? - by rugal - 15.03.2011, 21:10
Re: [DUV] Tirar as Faixas amarelas da DP ? - by [AF]Junior - 15.03.2011, 21:14
Re: [DUV] Tirar as Faixas amarelas da DP ? - by [$]GhosTRydeR[$] - 15.03.2011, 22:36

Forum Jump:


Users browsing this thread: 2 Guest(s)