SA-MP Forums Archive
[FilterScript] Spotlight for Helicopters [0.3c] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Spotlight for Helicopters [0.3c] (/showthread.php?tid=198729)



Movable Spotlights for Helicopters [0.3c] - CuervO - 13.12.2010

Helicopters' Spotlights 0.3c

With this script Each player will be able to use an spotlight on his Helicopter and move it Around (Great for Roleplaying Servers). This Works Perfectly on Raindances & Hunters, With mavericks & others the spot light will be too big and it wont fit, However it will still work.

Cool! How does it Work?
Simply get in any Helicopter and type /spotlight, then like in the police maverick, press the Horn key to turn it on/off, You can control it around with KEY_ANALOG_UP , KEY_ANALOG_DOWN, KEY_ANALOG_RIGHT, KEY_ANALOG_LEFT (Default NUM8(Forward),NUM2(Back),NUM4(Left),NUM6(Right)). There are three colours for this, White, Blue and Red, Which can be changed with a Command.


What are the Commands?
/commands, which will display the commands /spotlight and /spotlightcolor.



Screens?










Download?

spotlight.pwn
spotlight.amx


You will need zcmd include if you wish to compile it!


Re: Spotlight for Helicopters [0.3c] - Haydz - 13.12.2010

Pretty impressive man, looking good.


Re: Spotlight for Helicopters [0.3c] - The_Gangstas - 13.12.2010

very nice, good job.
why are u doing this 3 times?

pawn Код:
AttachObjectToVehicle(spotlight[playerid][0],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);
        AttachObjectToVehicle(spotlight[playerid][1],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);
        AttachObjectToVehicle(spotlight[playerid][2],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);



Re: Spotlight for Helicopters [0.3c] - -Tony- - 13.12.2010

i Get allot of errors like

Quote:

C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(76) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(77) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(7 : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(84) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(85) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(86) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(91) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(92) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(93) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(9 : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(99) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(100) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(232) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(233) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\Family\Desktop\Los Santos RPG\filterscripts\spotlight.pwn(234) : error 017: undefined symbol "AttachObjectToVehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


15 Errors.

And im using a server almost liek ravens roleplay

pleas help

thanks


Respuesta: Re: Spotlight for Helicopters [0.3c] - CuervO - 13.12.2010

Quote:
Originally Posted by The_Gangstas
Посмотреть сообщение
very nice, good job.
why are u doing this 3 times?

pawn Код:
AttachObjectToVehicle(spotlight[playerid][0],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);
        AttachObjectToVehicle(spotlight[playerid][1],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);
        AttachObjectToVehicle(spotlight[playerid][2],carid,0,0,spotlightpos[playerid][0],spotlightpos[playerid][1],0,spotlightpos[playerid][2]);
Three different objects...

pawn Код:
spotlight[playerid][0] = CreateObject(2888,0,0,0,0,0,0);
spotlight[playerid][1] = CreateObject(2887,0,0,0,0,0,0);
spotlight[playerid][2] = CreateObject(spotlightob[playerid],0,0,0,0,0,0);
-------------------------------------

Quote:
Originally Posted by -Tony-
Посмотреть сообщение
i Get allot of errors like



And im using a server almost liek ravens roleplay

pleas help

thanks
You need 0.3c


Re: Spotlight for Helicopters [0.3c] - -Tony- - 13.12.2010

cause my server dosent work whit 0.3c client


Respuesta: Spotlight for Helicopters [0.3c] - CuervO - 13.12.2010

Updated, no longer in beta, You can no longer go over the Angle -2.0 & -170.0, You have now to turn it on /off with the horn key like in the police maverick, fixed the spotlightcolor bug. Enjoy


Re: Spotlight for Helicopters [0.3c] - -John- - 13.12.2010

great, idea, will try it out!


Re: Spotlight for Helicopters [0.3c] - vyper - 13.12.2010

looks good


Re: Spotlight for Helicopters [0.3c] - Scenario - 13.12.2010

Hey, this is pretty cool. It would be useful for police and/or news helicopters.