[HELP] Light
#1

How to make an light? like this: HERE. That tree have an red light or something in the center of the tree

I want to know how to make:
  • Red Lights
  • Orange Lights
  • Yellow Lights
  • White Lights
Reply
#2

Check out MTA map editor, to view all objects, else try the wiki..
Reply
#3

Those white ones are 'bollardlight''s
Do the red ones flash? Then they runway_(something)
Reply
#4

They are objects, search for them.
Reply
#5

Emm, Is it possible to make an script like this?

/RedLightOn - Turns the red light on
/RedLightOff - Turns the red light off


This is just something i just guessed; It is wrong xD
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/redlighton",cmdtext,true))
    {
        SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
        SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
        SetLight(COLOR_RED X, Y, Z,); //Just Guessed
        return 1;
    }
    return 0;
}
PS: I have searched at wikipedia but i dident find anything.
Reply
#6

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
Emm, Is it possible to make an script like this?

/RedLightOn - Turns the red light on
/RedLightOff - Turns the red light off

pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/redlighton",cmdtext,true))
    {
        SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
        SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
        SetLight(COLOR_RED X, Y, Z,); //Just Guessed
        return 1;
    }
    return 0;
}
PS: I have searched at wikipedia but i dident find anything.
No, it's not possible. Listen on previous speakers, they're objects so you need something like " CreateObject(ID,X,Y,Z,rX, rY,rZ); " instead.
Reply
#7

Quote:
Originally Posted by Goobiiify
Посмотреть сообщение
No, it's not possible. Listen on previous speakers, they're objects so you need something like " CreateObject(ID,X,Y,Z,rX, rY,rZ); " instead.
There is a way of achieving what he wants. You would just need to create the objects that emit lights then assign there ID to a variable then upon wanting to turn them off destroy the objects and when wanting to turn them back on re-create the objects.
Reply
#8

Quote:
Originally Posted by ChristopherM
Посмотреть сообщение
There is a way of achieving what he wants. You would just need to create the objects that emit lights then assign there ID to a variable then upon wanting to turn them off destroy the objects and when wanting to turn them back on re-create the objects.
can you make it? LoL, i am best at making MAPS not stuff like this :P
Reply
#9

I don't even know what the object ID's for the lights are and what vectors you want them at. I could take a swing at it if you would supply me the coordinates of all the objects including the lights, tree and the object ids.
Reply
#10

Quote:
Originally Posted by ChristopherM
Посмотреть сообщение
I don't even know what the object ID's for the lights are and what vectors you want them at. I could take a swing at it if you would supply me the coordinates of all the objects including the lights, tree and the object ids.
IDK The light objects
pawn Код:
CreateObject(654,2082.11523438,1683.27722168,9.82031250,0.00000000,0.00000000,0.00000000); //The Tree
CreateObject(RED LIGHT,2085.16723633,1684.56921387,26.80032921,0.00000000,0.00000000,0.00000000); //Red light
CreateObject(WHITE LIGHT,2086.15234375,1680.94458008,25.95033455,0.00000000,0.00000000,0.00000000); //White Light
CreateObject(BLUE LIGHT,2081.89843750,1683.52148438,31.32027435,0.00000000,93.99996948,349.99993896); //Blue Light
CreateObject(YELLOW LIGHT,2078.42724609,1681.82885742,23.70031929,0.00000000,0.00000000,0.00000000); //Yellow Light
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)