SA-MP Forums Archive
Coord... +REP! - 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)
+--- Thread: Coord... +REP! (/showthread.php?tid=332353)



Coord... +REP! - Gooday - 07.04.2012

Hello, Im using these coords:

pawn Код:
case 1:
            {
                if(Siren[VID] == 1)
                {
                    SendClientMessage(playerid, COLOR_GOLD, "(INFO) This vehicle already has a siren!");
                    return 1;
                }
                 new sendername[MAX_PLAYER_NAME];
                 Siren[VID] = 1;
                 GetPlayerName(playerid, sendername, sizeof(sendername));
                 SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
                 AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.95, 0.275, 0.0, 0.1, 0.0); //75
                 format(string, sizeof(string), "%s puts the police light on the dashboard.", sendername);
                 ProxDetector(30.0, playerid, string, COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
                return 1;
            }
This actually adds a "police light" in the middle of the dash.

I would like to have it at the right of the dash, Like in this video:

[ame]http://www.youtube.com/watch?v=lqH100ME1sA[/ame]


Re: Coord... +REP! - SnG.Scot_MisCuDI - 08.04.2012

Use a object attacher for cars (one that saves) and get the cords from that file. (i would give u them but i cant go in-game at the moment)


Re: Coord... +REP! - Gooday - 08.04.2012

*FIXED*