[Pedido] Teleporte - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Teleporte (
/showthread.php?tid=434453)
Teleporte -
Ricardolas00 - 02.05.2013
Alguem me podia passar o codigo em que um admin use o comando /ativarteleporte e depois vai ao mapa marca um local e ele e tele transportado ate la?
Re: Teleporte -
Hulk3000 - 02.05.2013
Selecionar o mapa, nao trata-se de comando.
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerClickMap
Respuesta: Teleporte -
Ricardolas00 - 02.05.2013
Mas como por em comando por exemplo so quando usar o /ativarteleporte e que o pode utilizar?
Re: Teleporte -
smiiir - 02.05.2013
Ve se funciona
PHP код:
new bool:xLiberou; // TOPO
COMMAND:liberar ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк ativou o teleporte" ) ;
xLiberou = true ;
return 1;
}
COMMAND:bloquear ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк bloqueou o teleporte" ) ;
xLiberou = false ;
return 1;
}
public OnPlayerClickMap ( playerid, Float:fX, Float:fY, Float:fZ )
{
if ( xLiberou == true )
{
SetPlayerPosFindZ ( playerid, fX, fY, fZ ) ;
}
return 1;
}
Respuesta: Re: Teleporte -
Ricardolas00 - 02.05.2013
Quote:
Originally Posted by iSmirnoff
Ve se funciona
PHP код:
new bool:xLiberou; // TOPO
COMMAND:liberar ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк ativou o teleporte" ) ;
xLiberou = true ;
return 1;
}
COMMAND:bloquear ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк bloqueou o teleporte" ) ;
xLiberou = false ;
}
public OnPlayerClickMap ( playerid, Float:fX, Float:fY, Float:fZ )
{
if ( xLiberou == true )
{
SetPlayerPosFindZ ( playerid, fX, fY, fZ ) ;
}
return 1;
}
|
Nao deu
Respuesta: Teleporte -
Ricardolas00 - 02.05.2013
alguem?
Respuesta: Teleporte -
Ricardolas00 - 04.05.2013
Precisa msm do comando alguem?
Respuesta: Re: Teleporte -
Ricardolas00 - 06.05.2013
Quote:
Originally Posted by iSmirnoff
Ve se funciona
PHP код:
new bool:xLiberou; // TOPO
COMMAND:liberar ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк ativou o teleporte" ) ;
xLiberou = true ;
return 1;
}
COMMAND:bloquear ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк bloqueou o teleporte" ) ;
xLiberou = false ;
return 1;
}
public OnPlayerClickMap ( playerid, Float:fX, Float:fY, Float:fZ )
{
if ( xLiberou == true )
{
SetPlayerPosFindZ ( playerid, fX, fY, fZ ) ;
}
return 1;
}
|
Funcionou agora que reparei que tava a usar strcmp e era em zcmd