Please help
#1



How can i create in pawn this ? R14,K1 For any vehicles LVPD - K2 LVPD K3,FBI RANCHER - U4

Any instruction? please.
Reply
#2

So you want to write some 2D text on certain vehicles? The easiest way would be to create a 3d text lable and attach it to the vehicle but it dont really cut it..

Thats why i think you should try to use SetObjectMaterialText.
I have not used it, but it should be pretty simple

Define first the vehicles and then you attach the text to them when you create them.

Example of a vehicle definition :

#define infernus 411

When you use SetObjectMaterialText, you have to create first the object (then make some text on it) and then you can attach it to vehicle! Create the object under OnGameModeInit.

pawn Код:
new     theobject; //On top of script
   
theobject = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //Under OnGameModeInit
SetObjectMaterialText(theobject, "S.W.A.T.", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, 0xfff0f0f0, 0, 1); // Under OnGamemodeInit
Then OnVehicleSpawn is propoably where you should attach the text on em:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    if(vehicleid == lvpdcar)
    {
    AttachObjectToVehicle(theobject, securicar, 1.153, -1.2, 0.46, 0.0, 0.0, 0.0);
    }
    return 1;
}
This is an wery rought piece of code, but i hope it gives you the direction for you to go!
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)