[FilterScript] Spotlight for Helicopters [0.3c]
#1

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!
Reply
#2

Pretty impressive man, looking good.
Reply
#3

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]);
Reply
#4

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
Reply
#5

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
Reply
#6

cause my server dosent work whit 0.3c client
Reply
#7

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
Reply
#8

great, idea, will try it out!
Reply
#9

looks good
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)