Szerző Téma: Chatbubble  (Megtekintve 739 alkalommal)

Chatbubble
« Dátum: 2016. Március 13. - 18:00:30 »
0 Show voters
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?

Chatbubble
« Válasz #1 Dátum: 2016. Március 13. - 18:12:36 »
0 Show voters
Nem 3 textlabelre gondols??  :hmmm: Mert kocsin még nem hallottam chatbubblerol :)

Chatbubble
« Válasz #2 Dátum: 2016. Március 13. - 19:23:29 »
0 Show voters
De igen arra:o

Chatbubble
« Válasz #3 Dátum: 2016. Március 13. - 19:31:13 »
0 Show voters

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
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal