speedgun inside vehicle
#1

Is this possible to script?
If police officer is inside COP Car, then he can see speed of car what is forward of cop car
Reply
#2

Yes, it can be scripted. I've seen something similar to a roleplay server. I don't know more details though.

Edit: Found this filterscript meanwhile. I hope it is what you're looking for.
Reply
#3

Thank you
Reply
#4

i try to put this script inside my gamemode, if i put this
Код:
for (new i = 1; i <= MAX_VEHICLES; i++)
        {
            VehRadarID [i] = -1;
            SpeedAndModel [i] = TextDrawCreate (545.0, 200.0, "~b~ ~n~~r~");
            TextDrawFont (SpeedAndModel [i], 2);
            TextDrawLetterSize (SpeedAndModel [i], 0.3, 1.0);
            CheckingSpeed [i] = 0;
        }
Then all car inside my server are gone/dissapeared.
Reply
#5

Show the declarations of those arrays. They need to be [MAX_VEHICLES+1] in size. Probably an index out of bounds error.
Reply
#6

i'm not sure what you mean, maybe this

Код:
new OldVehID [MAX_PLAYERS];
new Text: SpeedAndModel [MAX_VEHICLES];
new VehRadarID [MAX_VEHICLES];
new CheckingSpeed [MAX_VEHICLES];
new Text: RadarHud;
Reply
#7

Код:
new Text: SpeedAndModel [MAX_VEHICLES];
Really dude?

To do this you need to think of how you want to it work EXACTLY first it is very easy to code actually.
Reply
#8

maybe you help, 'cause i dont understand...
Reply


Forum Jump:


Users browsing this thread: