Comando bбsico.
#1

Hola, alguien me podrнa facilitar un comando para tpear jugadores a mi posiciуn. El tнpico /traer [ID]
Gracias de antemano !
Reply
#2

PHP код:

CMD
:traer(playeridparams[])
{
    new 
id;
    if(
sscanf(params"r"id)) return SendClientMessage(playerid, -1"Uso: /traer [id o nombre]");
    
//obtenemos la posicion del jugador que usarб el comando
    
new Float:Pos[3];
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    
//Con esto cambiamos la posicion del jugador al cual queremos traer
    
SetPlayerPos(idPos[0], Pos[1], Pos[2]);
    return 
1;

Reply
#3

PHP код:
CMD:traer(playeridparams[]) 
{  
    if(
sscanf(params"u"params[0])) return SendClientMessage(playerid, -1"Uso: /traer [id o nombre]"); 
    
//obtenemos la posicion del jugador que usarб el comando 
    
new Float:Pos[3]; 
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]); 
    
//Con esto cambiamos la posicion del jugador al cual queremos traer 
    
SetPlayerPos(params[0], Pos[0], Pos[1], Pos[2]); 
    return 
1

Asн estб mejor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)