|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2011
Posts: 275
Reputation: 0
|
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;
}
|
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Nov 2011
Posts: 48
Reputation: 0
|
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;
}
PS: Nu uita sa schimbi interiorul daca e nevoie.. Last edited by Cavetchi; 10/08/2012 at 08:31 PM. |
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2011
Posts: 275
Reputation: 0
|
playerpointstripped mi se pare ca este din gf ... si nu merge
|
|
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: Nov 2011
Posts: 48
Reputation: 0
|
Nu este din GF, mie imi merge perfect, poate ai gresit undeva...dami coordonatele ca til fac eu
|
|
|
|
|
|
#5 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2011
Posts: 275
Reputation: 0
|
Am rezolvat !
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 08:01 PM |
| [Include] [INC]Teleport include. Make teleport in 1 line! | AiVAMAN | Includes | 2 | 05/09/2009 02:41 PM |