A summary of the changes that you want:Having been participating races lately, there wasn't a time when I couldn't spot at least one lamer, attempting to shoot someone's tires, hijack racers' vehicles, and so forth. It's kind of annoying to be honest and I am fairly sure most of you feel alike, and so the problem should be dealt with.
A.) The idea is to take away the weapons you are carrying, when approaching the race-start. A 50-80 unit radius around the starting point would do the job. So when entering the area, your weapons would be taken away
temporarily, and given back once you are further again.
B.) Matter of approach, in terms of time this is one is faster to implement. Check whether a player is within 50-80 units and freeze for 5 seconds in case key_fire is hit - Just like in 24/7's. That way there is no way you could shoot even a single bullet, and screw up someone's vehicle => race.
The advantages of this change happening:This simple but effective idea provides SAFE race starts. Not having to worry about your tyres and vehicle damage will bring relief for most of us.
The disadvantages of this change happening:By implementing either of these ideas, you ruin offenders' fun. But seriously, I can't think of any... But you are obviously not supposed to visit a race for DMing purposes, so blocking weapons won't hurt anyone.
Any script snippets which provide the feature that you wantI could, but I don't find it necessary, considering this is really not a big deal.
If you pick the first one, just store weapon data in an array. Take it away when needed, and by accessing the variables give it back accordingly.
(In fact you could store weapon data in the array you use in minigames. Upon /stoprampage, you are given your weapons back)Second one takes less time, you probably have a variable, indicating there is a race being hosted (but not yet started). When key_fire is hit, just check the variable that contains race info. If there's a race, compare player positions as well, otherwise do nothing. If the result is positive, either send a warning message or just freeze the offender, but definitely don't allow anyone to shoot.
That would be it, /discuse