[Pedido] Teleporte
#1

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?
Reply
#2

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
Reply
#3

Mas como por em comando por exemplo so quando usar o /ativarteleporte e que o pode utilizar?
Reply
#4

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;
} 
Reply
#5

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
Reply
#6

alguem?
Reply
#7

Precisa msm do comando alguem?
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)