[Pedido] Name Й id no veiculo
#4

Use textlabel

https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle

PHP код:
CMD:veiculo (playeridparams[]) 

    new 
Text3D:vehicle3Dtext[MAX_VEHICLES];
    new 
String[128], Nomee[24], ModelVeiculoCor1Cor2
    
Float:XFloat:YFloat:ZFloat:Angle
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"Primeiro saia do veiculo atual."); 
    if(
sscanf(params"ddd"ModelCor1Cor2)) return SendClientMessage(playerid, -1"Use: /veiculo (ID) (Cor1) (Cor2)"); 
    if(
IsPlayerConnected(playerid)) 
    { 
        if(
Model >= 400 && Model <= 611
        { 
            
GetPlayerPos(playeridXYZ); 
            
GetPlayerFacingAngle(playeridAngle); 
            
Veiculo AddStaticVehicleEx(ModelXYZAngleCor1Cor230); 
            
LinkVehicleToInterior(VeiculoGetPlayerInterior(playerid)); 
            
SetVehicleVirtualWorld(VeiculoGetPlayerVirtualWorld(playerid)); 
            
PutPlayerInVehicle(playeridVeiculo0);
            
GetPlayerName(playeridNomeesizeof(Nomee)); 
            
format(Stringsizeof(String), "Olб %s, vocк criou o veнculo ID: %d"NomeeModel); 
            
SendClientMessage(playerid, -1String); 
            new 
msgf[25];
            
format(msgfsizeof(msgf), "%s(%02d) id: %d"Nomee,playeridVeiculo);     // AQUI
            
vehicle3DtextVeiculo ] = Create3DTextLabel(msgf, -10.00.00.050.00);// AQUI
            
Attach3DTextLabelToVehiclevehicle3DtextVeiculo ] , Veiculo0.00.00.0);// AQUI
        

        else 
            
SendClientMessage(playerid, -1"Veiculo invбlido, use id's de 400 a 611"); 
    } 
    return 
1

Reply


Messages In This Thread
Name Й id no veiculo - by BrGabrielBr - 01.03.2018, 19:43
Re: Name Й id no veiculo - by IgorLuiz - 01.03.2018, 20:26
Re: Name Й id no veiculo - by BrGabrielBr - 01.03.2018, 21:38
Re: Name Й id no veiculo - by Marllun - 01.03.2018, 21:47

Forum Jump:


Users browsing this thread: 2 Guest(s)