[HELP] Undercover Police Light Help -
Vlad_Bond - 04.10.2011
Hi! I created this script and I need help. When I type /undercover, I want a vehicle (Cheetah) to pop up with a siren. I did that. And this is where I need help: I want player to press 'H' key and so the beams like from police rotate around the siren. PLEASE HELP!!! BTW. Here is my script:
Код HTML:
new VehicleObject[1];
COMMAND:vehicle(playerid, cmdtext[])
{
new veh, Float:Pos[4];
GetPlayerPos(playerid, Float:Pos[0], Float:Pos[1], Float:Pos[2]);
GetPlayerFacingAngle(playerid, Float:Pos[3]);
VehicleObject[0] = CreateObject(18646, 0.0001, 0.0200, -16.0000, 0, 0, 0);
veh = CreateVehicle(415, Float:Pos[0], Float:Pos[1], Float:Pos[2], Float:Pos[3], -1, -1, 50000);
AttachObjectToVehicle(VehicleObject[0], veh, -0.34, -0.17, 0.64, -2.00, 0.00, 4.00);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, 0xFFFFFF, "You went Undercover.");
return 1;
}
EDIT: When I Do This Command In Water, Underwater The beams Work, But On The Ground They Don't...
How do I make it have police siren without user downloading audio plugin :/
Re: [HELP] Undercover Police Light Help -
Backwardsman97 - 05.10.2011
Try out this.
http://pastebin.com/Xndq8ZTc Just read the comment at the top.
EDIT: Just noticed you used zcmd like this.
pawn Код:
COMMAND:vehicle(playerid, cmdtext[])
//instead of
COMMAND:vehicle(playerid, params[])
//???
Re: [HELP] Undercover Police Light Help -
BitlynkNetworks - 05.10.2011
Quote:
Originally Posted by Vlad_Bond
When I type /undercover, I want a vehicle (Cheetah) to pop up with a siren.
|
Do you mean a Light?
Re: [HELP] Undercover Police Light Help -
Vlad_Bond - 05.10.2011
Yea. Also how do I do it so the person who is doing the command, can do it only near LSPD. I think I know how to do it, but wanna make sure that I am right. ThX
Re: [HELP] Undercover Police Light Help -
Vlad_Bond - 05.10.2011
Quote:
Originally Posted by Backwardsman97
Try out this. http://pastebin.com/Xndq8ZTc Just read the comment at the top.
EDIT: Just noticed you used zcmd like this.
pawn Код:
COMMAND:vehicle(playerid, cmdtext[])
//instead of
COMMAND:vehicle(playerid, params[])
//???
|
That above works.. When I press H, the siren appears and dissapears when I press it again, but I REALLY need some one to make the beams go around like in this video:
[ame]http://www.youtube.com/watch?v=hCHiHIksSwo[/ame]
That video's script doesn't work for me tho... If some one could correct it please do! Also if this is possible where you type /undercover and siren can pop up on ANY vehicle's roof. Thank you. If it's hard don't do it, but if easy please do, I will put you in my server's credits.
Re: [HELP] Undercover Police Light Help -
Backwardsman97 - 05.10.2011
You mean the beams weren't going around?
Re: [HELP] Undercover Police Light Help -
Jack_Leslie - 06.10.2011
There's an fs for this. Use the search function.
Re: [HELP] Undercover Police Light Help -
Vlad_Bond - 06.10.2011
i searched but didnt find it... could someone link it for me please?..
Re: [HELP] Undercover Police Light Help -
Vlad_Bond - 07.10.2011
Quote:
Originally Posted by Jack_Leslie
There's an fs for this. Use the search function.
|
I searched all over ****** and wasnt able to find this.. can you gimme the link??
Re: [HELP] Undercover Police Light Help -
Da' J' - 25.11.2011
Quote:
Originally Posted by Vlad_Bond
If some one could correct it please do! Also if this is possible where you type /undercover and siren can pop up on ANY vehicle's roof. Thank you. If it's hard don't do it, but if easy please do, I will put you in my server's credits.
|
This i need too. Someone help? And also, it should work only with skin ID's 280-287.