Vehicle Object
#1

How do I add object in vehicle like this:



Where can I get coordinates?
Reply
#2

I have larp gm, I need to put an object the driving school car. How do I do?
Reply
#3

Rotation light or that sand thingy?
Reply
#4

If You Need Police Undercover Light So Here it is
Its a Police Undercover Light
Here Is Command

Код:
if(!strcmp(cmdtext,"/undercover",true))
{
        new v = GetPlayerVehicleID(playerid);
        if(!pLightStatus[playerid])
        {
            pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0);
            AttachObjectToVehicle(pLightObject[playerid], v, -0.40, -0.15, 0.70,   -2.00, 0.00, 4.00);
            pLightStatus[playerid] = true;
            SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light .");
            return 1;
        }
        else
        {
            DestroyObject(pLightObject[playerid]);
            pLightStatus[playerid] = false;
            return 1;
        }
    }
Give Me Repu+ If I Help You
Reply
#5

if I reboot the server when the roof was already in place
Reply
#6

Quote:
Originally Posted by -BadGirl-
Посмотреть сообщение
If You Need Police Undercover Light So Here it is
Its a Police Undercover Light
Here Is Command

Код:
if(!strcmp(cmdtext,"/undercover",true))
{
        new v = GetPlayerVehicleID(playerid);
        if(!pLightStatus[playerid])
        {
            pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0);
            AttachObjectToVehicle(pLightObject[playerid], v, -0.40, -0.15, 0.70,   -2.00, 0.00, 4.00);
            pLightStatus[playerid] = true;
            SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light .");
            return 1;
        }
        else
        {
            DestroyObject(pLightObject[playerid]);
            pLightStatus[playerid] = false;
            return 1;
        }
    }
Give Me Repu+ If I Help You
(18035) : error 028: invalid subscript (not an array or too many subscripts): "pLightStatus"
(18035) : warning 215: expression has no effect
(18035) : error 001: expected token: ";", but found "]"
(18035) : error 029: invalid expression, assumed zero
(18035) : fatal error 107: too many error messages on one line

Код:
if(!strcmp(cmdtext,"/undercover",true))
   {
        if( !IsACop( playerid ) )
        return SendClientMessage( playerid, COLOR_GREY, "you are not cop" );
        if( !IsPlayerInAnyVehicle( playerid ) )
        return SendClientMessage( playerid, COLOR_GREY, "You are not car!" );
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        return SendClientMessage( playerid, COLOR_GREY, "You not put light!" );
        new pLightStatus;
        new v = GetPlayerVehicleID(playerid);
        if(!pLightStatus[playerid])
        {
            pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0);
            AttachObjectToVehicle(pLightObject[playerid], 402, -0.40, -0.15, 0.70,   -2.00, 0.00, 4.00);
            pLightStatus[playerid] = true;
            SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light .");
            return 1;
        }
        else
        {
            DestroyObject(pLightObject[playerid]);
            pLightStatus[playerid] = false;
            return 1;
        }
    }
I would like to be able to put the car s lights 402 and 560 only.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)