SetObjectMaterialText & Entering a Building
#1

[Solved]

Entering a Building
I want a automatic entrance and exit to buildings such as this ammunation. Basically if you enter the icon/short area you'll be teleported into the building just like single player.
Код:
2124.0105,-1185.6470,24.0198,270.0499,0,0,0,0,0,0); // ENTRANCE - ARROW OUTSIDE
2126.8274,-1185.6943,24.0335,90.4607,0,0,0,0,0,0); // EXIT - INTERIOR
Reply
#2

For a transparent background, you can just use an invisible object and put text on that, try using 19482.

Use a timer that loops through all players and checks if they're at those coordinates with IsPlayerInRangeOfPoint.
Reply
#3



Код:
new objectid = CreateObject(19482, 2124.47778, -1192.18567, 25.23260,   0.00000, 0.00000, 180.00000);
SetObjectMaterialText(objectid, "{132685}AMMU-NATION", 0, OBJECT_MATERIAL_SIZE_256x128,
"sans-serif", 40, 1, 0xFFFF8200, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#4

Oh nevermind, you're using OBJECT_MATERIAL_TEXT_ALIGN_CENTER as the background color.
pawn Код:
SetObjectMaterialText(objectid, "{132685}AMMU-NATION", 0, OBJECT_MATERIAL_SIZE_256x128,
"sans-serif", 40, 1, 0xFFFF8200, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Try this.
Reply
#5

Works! Thanks, CalvinC!
Reply
#6

I've solved all issues.. thanks xd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)