[Ajuda] trazer
#1

Se eu uso o comando em mim dб certo, agora se uso em outro player nгo dб ¬¬' ..

pawn Код:
CMD:trazer(playerid,params[])
{
    new idt,string[250];
    new arq[40];
    new Float:PosX,Float:PosY,Float:PosZ;
    format(arq,sizeof(arq),"Logs/Puxos.ini");
    if(playerinfo[playerid][Admin] < 1) return SendClientMessage(playerid,branco,"SERVER: Unknown command.");
    if(!IsPlayerConnected(idt)) return SendClientMessage(playerid,red,"-Erro- Jogador nгo conectado");
    if(sscanf(params,"u",idt)) return SendClientMessage(playerid,yellow,"Use: /trazer <id>");
    GetPlayerPos(idt,PosX,PosY,PosZ);
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) SetPlayerPos(idt,PosX,PosY,PosZ); else SetVehiclePos(GetPlayerVehicleID(idt),PosX,PosY,PosZ);
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(idt));
    SetPlayerInterior(playerid, GetPlayerInterior(idt));
    format(string,sizeof(string),"-OpLog- [ Admin: %s | Puxou atй vocк: %s | Poziзгo: X: %d - Y: %d - Z: %d ]",Nome(playerid),Nome(idt),PosX,PosY,PosZ);
    SendAdminMessage(laranja,string);
    writeLog(arq,string);
    return 1;
}
Reply
#2

ops, confusгo..

GetPlayerPos(playerid,PosX,PosY,PosZ);

Vocк deveria obter sua posiзгo e transportar o player atй ela.
Reply
#3

pawn Код:
GetPlayerPos(playerid, PosX, PosY, PosZ);
SetPlayerPos(idt, PosX, PosY, PosZ);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)