GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: Devil112 - 2016. március 13. - 18:00:30

Cím: Chatbubble
Írta: Devil112 - 2016. március 13. - 18:00:30
Sziasztok.
Kerestem de nem találtam sehol hogy lehetne megcsinálni azt , hogy pl. a 341 - es idjü járműre egy chatbubble-t helyezzen mint playernél.
Ezt hogy lehet megcsinálni?
Cím: Chatbubble
Írta: baglion02 - 2016. március 13. - 18:12:36
Nem 3 textlabelre gondols??  :hmmm: Mert kocsin még nem hallottam chatbubblerol :)
Cím: Chatbubble
Írta: Devil112 - 2016. március 13. - 19:23:29
De igen arra:o
Cím: Chatbubble
Írta: Haewyr - 2016. március 13. - 19:31:13

Attach3DTextLabelToVehicle(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);

 
Példa:
 

new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id; //Létrehozzuk a változókat
public OnFilterScriptInit() //Ha Gamemode akkor OnGamemodeInit()
{
  vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 ); //Létrehozzuk a kocsit
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( \"Szöveg\", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 ); //Létrehozzuk a labelt
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0); //Rárakjuk a kocsira
}