[FilterScript] Bait-Car Prototype (New Idea for CnR!)
#8

Quote:
Originally Posted by Delta 4
Посмотреть сообщение
The bait car to be more realistic should have the option to lock the vehicle, and unlock when the police was near, but in general is an awesome FS
I thought of using SetPlayerControllable(or something like that) but it wasn't working the way I needed it to. I'm sure someone with more skill can fix that to their needs.

Quote:
Originally Posted by xkirill
Посмотреть сообщение
pawn Код:
if (strcmp("/DIS", cmdtext, true)==0)
    {
        SendClientMessage(playerid, 0x00FFFFFF, "Bait-Car Disabled.");
        SetVehicleParamsEx(BC1, 0, 1, 0, 1, 0, 0, 0);
        SetVehicleParamsEx(BC2, 0, 1, 0, 1, 0, 0, 0);
        SetVehicleParamsEx(BC3, 0, 1, 0, 1, 0, 0, 0);
        return 1;
    }
This will turn off the engine for all the vehicles and I suggest to use a command proccecor to add params feature and use to advence your script,then you can make for example /dis [bcid(1-3)] instead of one command that turns off the engine for all the vehicles.
pawn Код:
DestroyVehicle(BC1);
DestroyVehicle(BC2);
DestroyVehicle(BC3);
For that case I suggest to check if the vehicle exist and/or destroy only one vehicle,the one that the command is used on.
for example /bc1 will destroy only vehicle BC1.

anyhow,nice idea.
If you read the script, you will know that only one vehicle can spawn at any time. Having said that, the code I used still works efficiently and can be rewritten by anyone who wants it. I like having things simpler too, but this is working for me. Thank you for the advice though

This comment is also to inform that I just finished up another update, this one adding 2 more cars and a boat, and set all commands to Admin permission. If anyone thinks it's something they want to add to their server, send me an Ip please.
Reply


Messages In This Thread
Bait-Car Prototype 2.0(New Idea for CnR!) - by Aerotactics - 30.06.2013, 14:11
Re: Bait-Car Prototype (New Idea for CnR!) - by Aerotactics - 30.06.2013, 19:37
Re: Bait-Car Prototype (New Idea for CnR!) - by NoahF - 30.06.2013, 19:39
Re: Bait-Car Prototype (New Idea for CnR!) - by Aerotactics - 30.06.2013, 19:46
Re: Bait-Car Prototype (New Idea for CnR!) - by Aerotactics - 30.06.2013, 20:55
Re: Bait-Car Prototype (New Idea for CnR!) - by Delta 4 - 30.06.2013, 21:10
Re: Bait-Car Prototype (New Idea for CnR!) - by Kaperstone - 30.06.2013, 21:15
Re: Bait-Car Prototype (New Idea for CnR!) - by Aerotactics - 30.06.2013, 22:12
Re: Bait-Car Prototype (New Idea for CnR!) - by Kar - 30.06.2013, 23:37
Re: Bait-Car Prototype (New Idea for CnR!) - by Aerotactics - 01.07.2013, 00:45

Forum Jump:


Users browsing this thread: 1 Guest(s)