SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 28/08/2012, 02:53 AM   #1
mandriva
Big Clucker
 
Join Date: Aug 2012
Posts: 77
Reputation: 0
Default Criei um Mapa e como crio o Teleporte?

Olá galera eu criei um mapazinho uma arena de x1 ae to querendo criar um teleporte para la tipo /arenax1 blz... ta aque o codigo. Por favor ajuda ae galera a fazer este [FS]!

HTML Code:
    CreateObject(3594, 2536.5, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(3594, 2539.3000488281, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(987, 2472.6000976563, -1722.8000488281, 12.5, 0, 0, 0);
    CreateObject(987, 2461, -1722.5, 12.5, 0, 0, 0);
    CreateObject(987, 2448.8999023438, -1722.5, 12.699999809265, 0, 0, 0);
    CreateObject(987, 2441.3999023438, -1722.6999511719, 12.800000190735, 0, 0, 0);
    CreateObject(987, 2443.3999023438, -1710.5999755859, 12.800000190735, 0, 0, 268);
    CreateObject(987, 2443.5, -1699.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443.5, -1687.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443, -1675.9000244141, 12.60000038147, 0, 0, 272);
    CreateObject(987, 2442.6000976563, -1665, 12.5, 0, 0, 272);
    CreateObject(3115, 1838.6999511719, -3595.1999511719, 0, 0, 0, 0);
    CreateObject(3115, 1859.8000488281, -3595.3000488281, 0, 0, 0, 0);
    CreateObject(3115, 1859.6999511719, -3614.1000976563, 0, 0, 0, 0);
    CreateObject(3115, 1838.6999511719, -3613.9899902344, 0, 0, 0, 0);
    CreateObject(980, 1870.0999755859, -3617.6999511719, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870.0999755859, -3606.1999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1869.9000244141, -3594.6000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1864.3000488281, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1852.8000488281, -3586, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1841.1999511719, -3585.8999023438, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1834, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1828.3000488281, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3603.1000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1828.3000488281, -3614.6000976563, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3617.8000488281, 3, 0, 0, 270);
    CreateObject(980, 1833.9000244141, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1845.3000488281, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1856.8000488281, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1864.4000244141, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(3115, 1839, -3595.6000976563, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.3000488281, -3595.5, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1838.5999755859, -3613.6999511719, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.5999755859, -3614.1000976563, 5.9900002479553, 0, 0, 0);
E o codigo do teleporte ^^

HTML Code:
if(strcmp(cmdtext,"/arenax1",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
return SetVehiclePos(vehicleid,2539.3000488281);
}
SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
SetPlayerPos(playerid,2539.3000488281);
return 1;
}
mandriva is offline   Reply With Quote
Old 28/08/2012, 03:02 AM   #2
Pedro_BML
Big Clucker
 
Pedro_BML's Avatar
 
Join Date: Apr 2012
Posts: 165
Reputation: 29
Default Re: Criei um Mapa e como crio o Teleporte?

pawn Code:
if(strcmp(cmdtext,"/arenax1",true)==0)
{
     if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
     {
          SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
          return SetVehiclePos(GetPlayerVehicleID(playerid),2539.3000488281);
     }
     SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
     SetPlayerPos(playerid,2539.3000488281);
     return 1;
}

Cara, procura um erro aí. Só tem UMA Coordenada.
__________________

Brasil Life Simulation RPG: Um novo conceito de RolePlayingGame!

Brasil Life Simulation RPG v2.0
IP: 72.20.12.41:7777
Venha conhecer o nosso servidor!

Lançado 26/08/2012!

Last edited by Pedro_BML; 28/08/2012 at 11:36 PM.
Pedro_BML is offline   Reply With Quote
Old 28/08/2012, 03:16 AM   #3
Spectro_BR
Big Clucker
 
Spectro_BR's Avatar
 
Join Date: May 2012
Posts: 172
Reputation: 10
Default Re: Criei um Mapa e como crio o Teleporte?

faz mais de 6 meses q to sem codar,to quase zerado,então se estiver errado lamento..
Code:
//
//

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Fs Arena By : Mandriva                 ");
	print("--------------------------------------\n");
	return 1;
}
    CreateObject(3594, 2536.5, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(3594, 2539.3000488281, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(987, 2472.6000976563, -1722.8000488281, 12.5, 0, 0, 0);
    CreateObject(987, 2461, -1722.5, 12.5, 0, 0, 0);
    CreateObject(987, 2448.8999023438, -1722.5, 12.699999809265, 0, 0, 0);
    CreateObject(987, 2441.3999023438, -1722.6999511719, 12.800000190735, 0, 0, 0);
    CreateObject(987, 2443.3999023438, -1710.5999755859, 12.800000190735, 0, 0, 268);
    CreateObject(987, 2443.5, -1699.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443.5, -1687.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443, -1675.9000244141, 12.60000038147, 0, 0, 272);
    CreateObject(987, 2442.6000976563, -1665, 12.5, 0, 0, 272);
    CreateObject(3115, 1838.6999511719, -3595.1999511719, 0, 0, 0, 0);
    CreateObject(3115, 1859.8000488281, -3595.3000488281, 0, 0, 0, 0);
    CreateObject(3115, 1859.6999511719, -3614.1000976563, 0, 0, 0, 0);
    CreateObject(3115, 1838.6999511719, -3613.9899902344, 0, 0, 0, 0);
    CreateObject(980, 1870.0999755859, -3617.6999511719, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870.0999755859, -3606.1999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1869.9000244141, -3594.6000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1864.3000488281, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1852.8000488281, -3586, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1841.1999511719, -3585.8999023438, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1834, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1828.3000488281, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3603.1000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1828.3000488281, -3614.6000976563, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3617.8000488281, 3, 0, 0, 270);
    CreateObject(980, 1833.9000244141, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1845.3000488281, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1856.8000488281, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1864.4000244141, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(3115, 1839, -3595.6000976563, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.3000488281, -3595.5, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1838.5999755859, -3613.6999511719, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.5999755859, -3614.1000976563, 5.9900002479553, 0, 0, 0);
    return 1;
    }
    
    public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/arenax1",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
return SetVehiclePos(vehicleid,2539.3000488281);
}
SendClientMessage(playerid, 0xFFFFFFAA,"Você foi para Arena X1");
SetPlayerPos(playerid,2539.3000488281);
return 1;
}
public OnFilterScriptExit()
{
	return 1;
}

#else
#endif
__________________
Spectro_BR is offline   Reply With Quote
Old 28/08/2012, 08:29 PM   #4
mandriva
Big Clucker
 
Join Date: Aug 2012
Posts: 77
Reputation: 0
Default Re: Criei um Mapa e como crio o Teleporte?

É Spectro_BR não funciono! Pesso que auguem me ajude!
mandriva is offline   Reply With Quote
Old 28/08/2012, 08:36 PM   #5
Kuddy
High-roller
 
Kuddy's Avatar
 
Join Date: Jun 2011
Location: Brasil / Paraná
Posts: 2,876
Reputation: 313
Default Re: Criei um Mapa e como crio o Teleporte?

pawn Code:
#include <a_samp>

public OnFilterScriptInit()
{
    CreateObject(3594, 2536.5, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(3594, 2539.3000488281, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(987, 2472.6000976563, -1722.8000488281, 12.5, 0, 0, 0);
    CreateObject(987, 2461, -1722.5, 12.5, 0, 0, 0);
    CreateObject(987, 2448.8999023438, -1722.5, 12.699999809265, 0, 0, 0);
    CreateObject(987, 2441.3999023438, -1722.6999511719, 12.800000190735, 0, 0, 0);
    CreateObject(987, 2443.3999023438, -1710.5999755859, 12.800000190735, 0, 0, 268);
    CreateObject(987, 2443.5, -1699.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443.5, -1687.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443, -1675.9000244141, 12.60000038147, 0, 0, 272);
    CreateObject(987, 2442.6000976563, -1665, 12.5, 0, 0, 272);
    CreateObject(3115, 1838.6999511719, -3595.1999511719, 0, 0, 0, 0);
    CreateObject(3115, 1859.8000488281, -3595.3000488281, 0, 0, 0, 0);
    CreateObject(3115, 1859.6999511719, -3614.1000976563, 0, 0, 0, 0);
    CreateObject(3115, 1838.6999511719, -3613.9899902344, 0, 0, 0, 0);
    CreateObject(980, 1870.0999755859, -3617.6999511719, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870.0999755859, -3606.1999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1869.9000244141, -3594.6000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1864.3000488281, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1852.8000488281, -3586, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1841.1999511719, -3585.8999023438, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1834, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1828.3000488281, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3603.1000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1828.3000488281, -3614.6000976563, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3617.8000488281, 3, 0, 0, 270);
    CreateObject(980, 1833.9000244141, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1845.3000488281, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1856.8000488281, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1864.4000244141, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(3115, 1839, -3595.6000976563, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.3000488281, -3595.5, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1838.5999755859, -3613.6999511719, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.5999755859, -3614.1000976563, 5.9900002479553, 0, 0, 0);
    return 1;
}

__ EDIT

Essas coordenadas estão erradas.

Você precisa pegar os 3 valores (X, Y, Z), que são latitude, longitude e altura.
__________________
"CRIANÇÃ GAMER OTAKO QUE SOFREU BULLYING NA ESCOLA E AINDA É BV"

Last edited by Kuddy; 28/08/2012 at 09:14 PM.
Kuddy is offline   Reply With Quote
Old 29/08/2012, 12:27 AM   #6
mandriva
Big Clucker
 
Join Date: Aug 2012
Posts: 77
Reputation: 0
Default Re: Criei um Mapa e como crio o Teleporte?

Quote:
Default Re: Criei um Mapa e como crio o Teleporte?
pawn Code:

#include <a_samp>

public OnFilterScriptInit()
{
CreateObject(3594, 2536.5, -1481, 28.60000038147, 0, 0, 0);
CreateObject(3594, 2539.3000488281, -1481, 28.60000038147, 0, 0, 0);
CreateObject(987, 2472.6000976563, -1722.8000488281, 12.5, 0, 0, 0);
CreateObject(987, 2461, -1722.5, 12.5, 0, 0, 0);
CreateObject(987, 2448.8999023438, -1722.5, 12.699999809265, 0, 0, 0);
CreateObject(987, 2441.3999023438, -1722.6999511719, 12.800000190735, 0, 0, 0);
CreateObject(987, 2443.3999023438, -1710.5999755859, 12.800000190735, 0, 0, 26;
CreateObject(987, 2443.5, -1699.1999511719, 12.699999809265, 0, 0, 270);
CreateObject(987, 2443.5, -1687.1999511719, 12.699999809265, 0, 0, 270);
CreateObject(987, 2443, -1675.9000244141, 12.60000038147, 0, 0, 272);
CreateObject(987, 2442.6000976563, -1665, 12.5, 0, 0, 272);
CreateObject(3115, 1838.6999511719, -3595.1999511719, 0, 0, 0, 0);
CreateObject(3115, 1859.8000488281, -3595.3000488281, 0, 0, 0, 0);
CreateObject(3115, 1859.6999511719, -3614.1000976563, 0, 0, 0, 0);
CreateObject(3115, 1838.6999511719, -3613.9899902344, 0, 0, 0, 0);
CreateObject(980, 1870.0999755859, -3617.6999511719, 3.0999999046326, 0, 0, 270);
CreateObject(980, 1870.0999755859, -3606.1999511719, 3.0999999046326, 0, 0, 90);
CreateObject(980, 1869.9000244141, -3594.6000976563, 3.0999999046326, 0, 0, 270);
CreateObject(980, 1870, -3591.6999511719, 3.0999999046326, 0, 0, 90);
CreateObject(980, 1864.3000488281, -3586, 3.0999999046326, 0, 0, 0);
CreateObject(980, 1852.8000488281, -3586, 3.0999999046326, 0, 0, 180);
CreateObject(980, 1841.1999511719, -3585.8999023438, 3.0999999046326, 0, 0, 0);
CreateObject(980, 1834, -3586, 3.0999999046326, 0, 0, 0);
CreateObject(980, 1828.3000488281, -3591.6999511719, 3.0999999046326, 0, 0, 90);
CreateObject(980, 1828.3000488281, -3603.1000976563, 3.0999999046326, 0, 0, 270);
CreateObject(980, 1828.3000488281, -3614.6000976563, 3.0999999046326, 0, 0, 90);
CreateObject(980, 1828.3000488281, -3617.8000488281, 3, 0, 0, 270);
CreateObject(980, 1833.9000244141, -3623.3000488281, 3.0999999046326, 0, 0, 180);
CreateObject(980, 1845.3000488281, -3623.3000488281, 3.0999999046326, 0, 0, 0);
CreateObject(980, 1856.8000488281, -3623.3000488281, 3.0999999046326, 0, 0, 180);
CreateObject(980, 1864.4000244141, -3623.3000488281, 3.0999999046326, 0, 0, 0);
CreateObject(3115, 1839, -3595.6000976563, 5.9900002479553, 0, 0, 0);
CreateObject(3115, 1859.3000488281, -3595.5, 5.9900002479553, 0, 0, 0);
CreateObject(3115, 1838.5999755859, -3613.6999511719, 5.9900002479553, 0, 0, 0);
CreateObject(3115, 1859.5999755859, -3614.1000976563, 5.9900002479553, 0, 0, 0);
return 1;
}


__ EDIT

Essas coordenadas estão erradas.

Você precisa pegar os 3 valores (X, Y, Z), que são latitude, longitude e altura.




Sim mas kd o teleporte como eu pego os valores (X, Y, Z)?
mandriva is offline   Reply With Quote
Old 29/08/2012, 12:33 AM   #7
Pedro_BML
Big Clucker
 
Pedro_BML's Avatar
 
Join Date: Apr 2012
Posts: 165
Reputation: 29
Default Re: Criei um Mapa e como crio o Teleporte?

Use /save no servidor.

Ele salva as coordenadas e cria um AddPlayerClass com essas. É só retirar e usar no teleporte.
__________________

Brasil Life Simulation RPG: Um novo conceito de RolePlayingGame!

Brasil Life Simulation RPG v2.0
IP: 72.20.12.41:7777
Venha conhecer o nosso servidor!

Lançado 26/08/2012!
Pedro_BML is offline   Reply With Quote
Old 29/08/2012, 06:00 AM   #8
PlayCore
Little Clucker
 
Join Date: Aug 2012
Posts: 3
Reputation: 0
Default Re: Criei um Mapa e como crio o Teleporte?

Tenta esse mano, como nao sei que GM vc usa ele ta configurado para qualquer um usar:

pawn Code:
#include <a_samp>

#pragma tabsize 0

new Float:TelePos[MAX_PLAYERS][6];

public OnFilterScriptInit()
{
    CreateObject(3594, 2536.5, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(3594, 2539.3000488281, -1481, 28.60000038147, 0, 0, 0);
    CreateObject(987, 2472.6000976563, -1722.8000488281, 12.5, 0, 0, 0);
    CreateObject(987, 2461, -1722.5, 12.5, 0, 0, 0);
    CreateObject(987, 2448.8999023438, -1722.5, 12.699999809265, 0, 0, 0);
    CreateObject(987, 2441.3999023438, -1722.6999511719, 12.800000190735, 0, 0, 0);
    CreateObject(987, 2443.3999023438, -1710.5999755859, 12.800000190735, 0, 0, 26);
    CreateObject(987, 2443.5, -1699.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443.5, -1687.1999511719, 12.699999809265, 0, 0, 270);
    CreateObject(987, 2443, -1675.9000244141, 12.60000038147, 0, 0, 272);
    CreateObject(987, 2442.6000976563, -1665, 12.5, 0, 0, 272);
    CreateObject(3115, 1838.6999511719, -3595.1999511719, 0, 0, 0, 0);
    CreateObject(3115, 1859.8000488281, -3595.3000488281, 0, 0, 0, 0);
    CreateObject(3115, 1859.6999511719, -3614.1000976563, 0, 0, 0, 0);
    CreateObject(3115, 1838.6999511719, -3613.9899902344, 0, 0, 0, 0);
    CreateObject(980, 1870.0999755859, -3617.6999511719, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870.0999755859, -3606.1999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1869.9000244141, -3594.6000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1870, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1864.3000488281, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1852.8000488281, -3586, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1841.1999511719, -3585.8999023438, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1834, -3586, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1828.3000488281, -3591.6999511719, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3603.1000976563, 3.0999999046326, 0, 0, 270);
    CreateObject(980, 1828.3000488281, -3614.6000976563, 3.0999999046326, 0, 0, 90);
    CreateObject(980, 1828.3000488281, -3617.8000488281, 3, 0, 0, 270);
    CreateObject(980, 1833.9000244141, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1845.3000488281, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(980, 1856.8000488281, -3623.3000488281, 3.0999999046326, 0, 0, 180);
    CreateObject(980, 1864.4000244141, -3623.3000488281, 3.0999999046326, 0, 0, 0);
    CreateObject(3115, 1839, -3595.6000976563, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.3000488281, -3595.5, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1838.5999755859, -3613.6999511719, 5.9900002479553, 0, 0, 0);
    CreateObject(3115, 1859.5999755859, -3614.1000976563, 5.9900002479553, 0, 0, 0);
    return true;
}/*Se for por isso em um GM ponha em public OnGameModeInit() - Mais tire o return true; dele!*/

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ArenaX1", cmdtext, true) == 0)// Aqui coloque o nome que vc quer tipo: /Aeroporto
    {
        if(IsPlayerConnected(playerid))
        {
            if (GetPlayerState(playerid) == 2)
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, 1304.2955,2.3636,1001.0241); LinkVehicleToInterior(tmpcar, 0);//Troque as coordendas para o Local que vc quer, esse é apra caso vc esteja em um carro
                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                SetPlayerPos(playerid, 1304.2955,2.3636,1001.0241);//Troca as coordenadas, e esse é para caso vc esteja de Apé|
            }
            SendClientMessage(playerid, 0xFFFFFFAA, "Você foi teleportado!");
            SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
        }
        return true;
    }
    return false;
}

/* Ele esta configurado para qualquer um do serve usar esse comando

1304.2955,2.3636,1001.0241 // Novo Local X1!*/
PlayCore is offline   Reply With Quote
Old 29/08/2012, 12:21 PM   #9
GhosT_[]
Huge Clucker
 
GhosT_[]'s Avatar
 
Join Date: May 2012
Location: Parana
Posts: 324
Reputation: 14
Default Re: Criei um Mapa e como crio o Teleporte?

Veja esse video e aprenda só a pegar as cordenadas
use oque o kuddy postou
e uma OBS se arena x1 porque vai telportar um carro junto?
Code:
SetVehiclePos
[ame]http://www.youtube.com/watch?v=EnYgSrzcCYU[/ame]
__________________
GhosT_[] is offline   Reply With Quote
Old 29/08/2012, 12:31 PM   #10
humildadeforever
High-roller
 
humildadeforever's Avatar
 
Join Date: Jan 2011
Location: Santo André - SP
Posts: 2,297
Reputation: 336
Default Re: Criei um Mapa e como crio o Teleporte?

E3M U7M TE3LE3P0TE3 A PO9SI8ÇAO9/I8NTE3R4I8O9R4 DO9 JO9GADO9R4 É3 SE3TADA. E3NTAO9 AS FU7NÇO9E3S Q1U7E3 VO9CE3 DE3VE3 U7SAR4 É3 SE3TP0LAYE3R4P0O9S E3 SE3TP0LAYE3R4I8NTE3R4I8R4. P0R4A P0E3GAR4 AS CO9O9R4DE3NADAS É3 SÓ P0E3GAR4 A P0O9SI8ÇAO DE3 U7M DO9S O9BJE3TO9S

P0AR4A E3NTE3NDE3R4 E3SSE3 TE3XTO9 R4E3TI8R4 O9S NU7ME3S, VAI8 SE3R4 MAI8S FACI8L


SO9R4R4Y P0E3SSO9AL. ME3U7 I8R4MAO9ZI8NHO9 DE3R4R4U7BO9U7 AGU7A NO9 TE3CLADO9 E3 AGO9R4A TA ASSI8M E3HU7E3HU7E3HU7. VO9U7 SE3CAR4 E3LE3 P0O9R4 DE3NTRO9 P0R4A VE3R4 SE3 R4SO9LVE3
__________________

Projeto atual: Sunset RolePlay
(Discord)

"Antes de querer ensinar, tenha a certeza de que você já aprendeu"

Make a change, make the world a better place. Cause tomorrow could be one day too late. - One Day Too Late (Skillet)

humildadeforever 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
[Ajuda] Teleporte pelo mapa Hugo Smit Português/Portuguese 22 10/04/2014 03:56 PM
[Ajuda] Teleporte pelo Mapa keller012 Português/Portuguese 2 27/07/2012 04:29 PM
[AJUDA] Função teleporte por mapa. Mutuka_XTreme Português/Portuguese 3 15/06/2012 06:35 PM
[Ajuda] Teleporte com o alvo vermelho do Mapa Mattos Português/Portuguese 7 29/09/2011 12:23 PM
[PEDIDO] Como crio um teleporte? RockstarGames Português/Portuguese 8 20/06/2011 02:15 AM


All times are GMT. The time now is 04:44 AM.


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