SA-MP Forums Archive
Problam in the 3D text in Streamer Plugin v2.5.2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problam in the 3D text in Streamer Plugin v2.5.2 (/showthread.php?tid=250648)



Problam in the 3D text in Streamer Plugin v2.5.2 - tal_peretz - 24.04.2011

first of i sorry about my bad english ........

I use this -
https://sampforum.blast.hk/showthread.php?tid=102865

when i make 3D text like this it's working -

PHP код:
CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251,878.7288,9.9305,100); 
But, when i attach it to a vehicle it's not show at all !!! why ? here is a example -
PHP код:
            format(TextCar,sizeof(TextCar),"VIP шлб {9B2E5E}(%s)",VehNames[GetVehicleModel(car)-400]);
            
TextUpCar[car] = CreateDynamic3DTextLabel(TextCar,P_Playzone,0,0,0,15.0);
            
Attach3DTextLabelToVehicle(TextUpCar[car],car,0.0,0.0,0.0); 
TNX FOR ALL HELPING !!!


Re: Problam in the 3D text in Streamer Plugin v2.5.2 - Nexotronix - 24.04.2011

function and params:

pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
to attach to vehicle:

Quote:

CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251, 878.7288,9.9305,100,INVALID_PLAYER_ID, vehicleid);

vehicleid - id of vehicle what 3dtext attached to!

for example
pawn Код:
new gVeh;

public OnGameModeInit()
{
    gVeh = CreateVehicle(400,2106.7251,878.7288,9.9305,0,0,1600);
    CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251,878.7288,9.9305,100,INVALID_PLAYER_ID, gVeh);
    return 1;
}



Re: Problam in the 3D text in Streamer Plugin v2.5.2 - tal_peretz - 24.04.2011

thank you ! in vehicle it's work

but when i attach it you player it's not work again -
PHP код:
label[playerid] = CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),30.0,40.0,50.0,40.0,playerid,INVALID_VEHICLE_ID); 



Re: Problam in the 3D text in Streamer Plugin v2.5.2 - Nexotronix - 24.04.2011

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
thank you ! in vehicle it's work

but when i attach it you player it's not work again -
PHP код:
label[playerid] = CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),30.0,40.0,50.0,40.0,playerid,INVALID_VEHICLE_ID); 
pawn Код:
CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),0.0,0.0,1.0,0.0,playerid)
just this


Re: Problam in the 3D text in Streamer Plugin v2.5.2 - tal_peretz - 24.04.2011

you did -
drawdistance = 0.0
why ? :O

and it's didn't work ..........


Re: Problam in the 3D text in Streamer Plugin v2.5.2 - tal_peretz - 24.04.2011

now it's working .. the problam was in the drawdistance

thank you very much !!