@Editado
Fiz aqui cara, nгo sei se vai funcionar, tu testa ai.
Tu usa /comando ID. ( pode usar seu id tambйm )
pawn Code:
#include < a_samp >
#include < sscanf >
#include < zcmd >
new bool:PlayerTexto[MAX_PLAYERS];
new Text3D:vehicle3Dtext[MAX_VEHICLES];
new Float:PosPlayer[3];
command(comando, playerid, params[])
{
new id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, -1, #Use /comando id do player);
if(IsPlayerConnected(id)) return SendClientMessage(playerid, -1, #Jogador nao online);
if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, -1, #Este jogador nao esta em um carro);
PlayerTexto[id] = true;
SendClientMessage(playerid, -1, #Voce vai ver agora a porra);
GetPlayerPos(id, PosPlayer[0], PosPlayer[1], PosPlayer[2]);
return 1;
}
public OnPlayerUpdate(playerid)
{
new vehicle_id = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid) && PlayerTexto[playerid] != true )
{
Delete3DTextLabel( vehicle3Dtext[ vehicle_id ] );
}
if(PlayerTexto[playerid] != false )
{
if(IsPlayerInAnyVehicle(playerid))
{
new string[60];
format(string, sizeof(string),"%d %d %d", PosPlayer[0], PosPlayer[1], PosPlayer[2]);
vehicle3Dtext[vehicle_id] = Create3DTextLabel( string , 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
}
}
return 1;
}