SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 10/08/2012, 03:24 PM   #1
Users
Huge Clucker
 
Join Date: Jul 2011
Posts: 269
Reputation: -1
Default Problema teleport

Salut am incercat si eu de ex cand esti in pozitia X sa te teleporteze in pozitia Y .
am incercat asa :
Code:
forward Teleports(playerid);
forward IsPlayerPoint(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz) ;

public IsPlayerPoint(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz)
{
    if(IsPlayerConnected(playerid))
	{
		new Float:tempposx, Float:tempposy, Float:tempposz;
		tempposx = (curx -x);
		tempposy = (cury -y);
		tempposz = (curz -z);
		if (((tempposx < radi ) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
	}
	return 0;
}
public Teleports ( playerid )
{
	new Float:cx, Float:cy, Float:cz;
	GetPlayerPos(playerid, cx, cy, cz) ;
	
	if(IsPlayerPoint(1,playerid,919.4679,-1251.9409,16.2109,cx,cy,cz))
	{
		//Reporter
		SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
		GameTextForPlayer(playerid, "~w~Fortele Nato",5000,1);
		SetPlayerInterior(playerid,6) ;
		SetPlayerFacingAngle(playerid, 0) ;
	}
	else if(IsPlayerPoint(1,playerid,246.783996,63.900199,1003.640625,cx,cy,cz))
	{
		//Reporter
		SetPlayerPos(playerid, 919.4679,-1251.9409,16.2109) ;
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0) ;
		SetPlayerFacingAngle(playerid,0);
	}
	return 1;
}
si nu ma teleporteaza , cum pot face altfel>
__________________
Users is offline   Reply With Quote
Old 10/08/2012, 03:30 PM   #2
Cavetchi
Little Clucker
 
Join Date: Nov 2011
Posts: 49
Reputation: 0
Thumbs up Re: Problema teleport

Adica fara sa tastezi vreo comanda ? Adica ca si intrarea la PD....Daca nu te descurci da un reply

#EDIT: Vad ca nu raspunzi

Code:
//---------------------------------DA UN NUME--------------------------
	else if (PlayerToPointStripped(1, playerid,AICI COORDONATELE, cx,cy,cz))
	{
		SetPlayerPos(playerid, AICI COORDONATELE);
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 1);
		PlayerInfo[playerid][pInt] = 0;
	}
Restul cred ca stii..

PS: Nu uita sa schimbi interiorul daca e nevoie..

Last edited by Cavetchi; 10/08/2012 at 08:31 PM.
Cavetchi is offline   Reply With Quote
Old 11/08/2012, 05:29 AM   #3
Users
Huge Clucker
 
Join Date: Jul 2011
Posts: 269
Reputation: -1
Default AW: Problema teleport

playerpointstripped mi se pare ca este din gf ... si nu merge
__________________
Users is offline   Reply With Quote
Old 11/08/2012, 06:48 AM   #4
Cavetchi
Little Clucker
 
Join Date: Nov 2011
Posts: 49
Reputation: 0
Default Re: Problema teleport

Nu este din GF, mie imi merge perfect, poate ai gresit undeva...dami coordonatele ca til fac eu
Cavetchi is offline   Reply With Quote
Old 11/08/2012, 06:59 AM   #5
Users
Huge Clucker
 
Join Date: Jul 2011
Posts: 269
Reputation: -1
Default AW: Problema teleport

Am rezolvat !
__________________
Users is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [REL 3] Teleport Engine (3.0) (1 line = 1 teleport) GameStar. Includes 14 27/08/2011 07:48 PM
problema teleport bogdan123 Română/Romanian 2 04/04/2011 01:04 PM
Problema con teleport elvago Español/Spanish 6 04/10/2010 11:02 PM
[PROBLEMA] UN AMIGO MIO TIENE UN PROBLEMA AL ENTRAR AL SAMP ... venezuela sa-mp Español/Spanish 5 27/12/2009 09:01 PM
[Include] [INC]Teleport include. Make teleport in 1 line! AiVAMAN Includes 2 05/09/2009 02:41 PM


All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.