AMX Mod X API Documentation

Signature
native cs_get_user_driving(index);
Description

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

the speed.

Parameters
  • index Client index
Returns

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

Errors
  • If the client index is not within the range of 1 to

    MaxClients, or the client is not connected, an error will be

    thrown.

Назад
Верх