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.