[HELP] Undercover Police Light Help
#1

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 :/
Reply
#2

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[])

//???
Reply
#3

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?
Reply
#4

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

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

You mean the beams weren't going around?
Reply
#7

There's an fs for this. Use the search function.
Reply
#8

i searched but didnt find it... could someone link it for me please?..
Reply
#9

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??
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)