cs_get_user_driving

Синтаксис

native cs_get_user_driving(index);

Употреба

index
Client index

Описание

Returns if the client is currently driving a vehicle and if so, indicates
the speed.

Връщаща стойност

0 if the client is not driving, 1 if driving a vehicle but
not moving, 2 to 4 if driving positive speeds, 5 if
driving at a negative speed (backing), see TRAIN_* constants
in hlsdk_const.inc

Грешка

If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error will be
thrown.