Making Arrest system while wanted is in the car problem
#1

Actually, i'm try to do script that if a wanted (criminal) is in the car with a police, mean they are in the same vehicle,
and if the cop presses 2 button, the criminal should be arrested.
Kindly show me the code, thanks
Reply
#2

Kindly try and DIY it first; then, if you stumble across some problem - let us know and we'll assist you.
You can't learn to code if you don't code even such a simple thing yourself.
Reply
#3

Use OnPlayerKeyStateChange

To make a test for pressing 2 keys at the same time you can do something like this with your own keys:
Код:
if((newkeys & KEY_FIRE) && (newkeys & KEY_CROUCH))
{
//do something
}
There's plenty examples on the wiki.

Here's a list of all the keys.

Like Maxandmov said, give it ago, if you get stuck, just ask.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)